Exemplo n.º 1
0
Arquivo: Node.php Projeto: 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();
 }
Exemplo n.º 2
0
Arquivo: Menu.php Projeto: 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()]);
 }