예제 #1
0
파일: Node.php 프로젝트: 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();
 }
예제 #2
0
파일: Menu.php 프로젝트: 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()]);
 }