示例#1
0
 /**
  * Removes the item
  * @param mixed $item
  */
 function Remove($item)
 {
     $prev = $this->provider->PreviousOf($item);
     $next = $this->provider->NextOf($item);
     if ($next) {
         $this->provider->SetPrevious($next, $prev);
     }
     $this->provider->Delete($item);
     if ($next) {
         $this->provider->Save($next);
     }
 }
示例#2
0
 /**
  * Gets the next child
  * @return mixed
  */
 protected final function NextChild()
 {
     $child = $this->child;
     $this->child = $this->tree->NextOf($this->child);
     return $child;
 }