Example #1
0
 /**
  * Appends an item to the end of the right aligned item block.
  * @param  ModuleNavigationItem $item to append
  * @return ModuleNavigation           This instance to enable method chaining.
  */
 public function appendRight($item)
 {
     if ($item instanceof ModuleNavigationItem) {
         $item->setParent($this);
         $this->itemsRight[] = $item;
     } else {
         logMsg('Attempted to add non-ModuleNavigationItem', 3, 5);
     }
     return $this;
 }
Example #2
0
 public function __construct($parent)
 {
     parent::__construct($parent, '');
 }
Example #3
0
 public function __construct($parent, $display)
 {
     parent::__construct($parent, $display);
 }
Example #4
0
 /**
  * Erzeugt einen neuen verlinkten Navigationseintrag.
  * @param string $display Anzeigetext des Eintrags.
  * @param string $url     Link des Eintrags.
  */
 public function __construct($parent, $display, $url, $title = '')
 {
     parent::__construct($parent, $display);
     $this->url = $url;
     $this->title = $title;
 }