Example #1
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;
 }