khanat-opennel-code/code/web/app/app_achievements_admin/class/CSRAtom_class.php
SirCotare 7d976a22ad #1470 admin tool workprint; menu admin almost complete; wip!!
--HG--
branch : gsoc2012-achievements
2012-06-25 15:04:51 +02:00

22 lines
No EOL
463 B
PHP

<?php
class CSRAtom implements CSR {
private $id;
function CSRAtom(&$data) {
$this->id = $data['atom_id'];
}
function grant($pid) {
$this->clear_all($pid); #empty database
}
function deny($pid) {
$this->clear_all($pid); #empty database
}
private function clear_all($pid) {
global $DBc;
$DBc->sqlQuery("DELETE FROM ach_player_atom WHERE apa_atom='".$this->getID()."' AND apa_player='".$pid."'");
}
}
?>