Example #1
0
File: Node.php Project: h4kuna/menu
 /**
  * 
  * @param string|NULL $delimiter
  * @return string
  */
 public function getUrlRecursive($delimiter = NULL)
 {
     $recirsiveUrl = NULL;
     if ($this->parent) {
         $recirsiveUrl = $this->parent->getUrlRecursive();
     }
     return $recirsiveUrl . $delimiter . $this->getUrl();
 }
Example #2
0
File: Menu.php Project: h4kuna/menu
 /**
  * Is item in active line as in crumb navigation.
  * 
  * @return bool
  */
 public function isInActive(INode $node)
 {
     $this->getCrumbNavigation();
     return isset($this->crumbs[$node->getIndex()]);
 }