getIterator();
while($iter->hasNext()) {
$curr = $iter->getNext();
$curr->grant($pid);
$this->setChildDone($curr->getID());
}
$this->parent->setChildDone($this->id);
}
function deny($pid) {
$iter = $this->getIterator();
while($iter->hasNext()) {
$curr = $iter->getNext();
$curr->deny($pid);
$this->setChildOpen($curr->getID());
}
$this->parent->setChildOpen($this->id);
}
function setPerkDone($id) {
echo "perk
";
$this->setChildDone($id);
echo "ach
";
$this->parent->addChildDone($this->id);
if(!$this->hasOpen()) {
$this->parent->removeChildOpen($this->id);
}
}
function setPerkOpen($id) {
echo "perk
";
$this->setChildOpen($id);
echo "ach
";
$this->parent->addChildOpen($this->id);
if(!$this->hasDone()) {
$this->parent->removeChildDone($this->id);
}
}
}
?>