Example #1
0
 /**
  * @param string $name
  * @param string $url
  *
  * @param null   $target
  *
  * @return \Menu_Bootstrap_Item|\Menu_Item
  */
 public function add_item($name, $url, $target = null)
 {
     return $this->_items[] = Menu_Bootstrap::create_item($name, $url, $target);
 }
Example #2
0
 /**
  * Add header
  *
  * @param string $label
  *
  * @return Nexeck_Menu_Bootstrap_Item
  */
 public function add_header($label)
 {
     $this->_children[] = Menu_Bootstrap::create_header($label);
     return $this;
 }