Example #1
0
 /**
  * Get the id of the menu item
  *
  * @return int The menu item id
  *
  * @since 2.0
  */
 public function getID()
 {
     return $this->_id ? $this->_id : parent::getId();
 }
Example #2
0
 /**
  * Get the path from the current item to the root of the tree
  * 
  * @return array The pathway
  *
  * @since 2.0
  */
 public function getPathway()
 {
     if ($this->_parent == null) {
         return array();
     }
     $pathway = $this->_parent->getPathway();
     $pathway[] = $this;
     return $pathway;
 }