Ejemplo n.º 1
0
 public function entries($name = null)
 {
     if (is_null($name)) {
         $entries = $this->find('NAVIGATIONENTRY');
     } else {
         $entries = $this->find('NAVIGATIONENTRY', ['NAME', $name]);
     }
     return NavigationEntry::createFromElements($entries);
 }
Ejemplo n.º 2
0
 private function _displayEntry(NavigationEntry $entry)
 {
     $string = Html::startTag('li', array('class' => 'naviEntry', 'id' => "entryLK_{$entry->getLogicalKey()}"));
     $string .= Html::url(HTML_ROOT . $entry['url'], $entry['name']);
     $string .= Html::endTag('li');
     return $string;
 }