Exemple #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);
 }
Exemple #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;
 }