Beispiel #1
0
 public function setParent(&$parent)
 {
     parent::setParent($parent);
     $step = $this->level;
     if (isset($parent->parent) && $parent->parent instanceof self) {
         $step -= $parent->parent->level;
     }
 }