khanat-opennel-code/code/web/app/app_achievements_admin/class/CSRAtom_class.php

22 lines
496 B
PHP
Raw Normal View History

2014-03-22 15:23:17 +00:00
<?php
class CSRAtom extends Node implements CSR {
function CSRAtom($data,$parent) {
$this->id = $data['atom_id'];
$this->parent = $parent;
}
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."'");
}
}
?>