public function addMenuItem(\Gems_Menu_SubMenuItem $menuItem, $label = null)
    {
        $key = $this->_getKey($menuItem->get('controller'), $menuItem->get('action'));

        if ($label) {
            $this->altLabels[$key] = $label;
        }

        $this->offsetSet($key, $menuItem);
        return $this;
    }
public function addMenuItem(\Gems_Menu_SubMenuItem $menuItem, $label = null)
    {
        $key = $this->_getKey($menuItem->get('controller'), $menuItem->get('action'));

        if ($label) {
            $this->altLabels[$key] = $label;
        }

        $this->offsetSet($key, $menuItem);
        return $this;
    }
public function addMenuItem ( \ Gems_Menu_SubMenuItem $ menuItem , $ label = null ) { $ key = $ this -> _getKey ( $ menuItem -> get ( 'controller' ) , $ menuItem -> get ( 'action' ) ) ; if ( $ label ) { $ this -> altLabels [ $ key ] = $ label ; } $ this -> offsetSet ( $ key , $ menuItem ) ; return $ this ; }
Add a menu item to this list

@param \Gems_Menu_SubMenuItem $menuItem
@param string $label Optional alternative label
@return \Gems_Menu_MenuList (continuation pattern)
Add a menu item to this list