protected function add($argsArray)
    {
        // Process parameters.
        $args = \MUtil_Ra::args(func_get_args(), 0,
            array('visible' => true,    // All menu items are initally visible unless stated otherwise
                'allowed' => true,      // Same as with visible, need this for t_oNavigationArray()
                ));

        if (! isset($args['label'])) {
            $args['visible'] = false;
        }

        if (! isset($args['order'])) {
            $args['order'] = 10 * (count($this->_subItems) + 1);
        }

        $page = new \Gems_Menu_SubMenuItem($this->escort, $this, $args);

        $this->_subItems[] = $page;

        return $page;
    }
protected function add($argsArray)
    {
        // Process parameters.
        $args = \MUtil_Ra::args(func_get_args(), 0,
            array('visible' => true,    // All menu items are initally visible unless stated otherwise
                'allowed' => true,      // Same as with visible, need this for t_oNavigationArray()
                ));

        if (! isset($args['label'])) {
            $args['visible'] = false;
        }

        if (! isset($args['order'])) {
            $args['order'] = 10 * (count($this->_subItems) + 1);
        }

        $page = new \Gems_Menu_SubMenuItem($this->escort, $this, $args);

        $this->_subItems[] = $page;

        return $page;
    }
protected function add ( $ argsArray ) { // Process parameters. $ args = \ MUtil_Ra :: args ( func_get_args ( ) , 0 , array ( 'visible' => true , // All menu items are initally visible unless stated otherwise 'allowed' => true , // Same as with visible, need this for t_oNavigationArray() ) ) ; if ( ! isset ( $ args [ 'label' ] ) ) { $ args [ 'visible' ] = false ; } if ( ! isset ( $ args [ 'order' ] ) ) { $ args [ 'order' ] = 10 * ( count ( $ this -> _subItems ) + 1 ) ; } $ page = new \ Gems_Menu_SubMenuItem ( $ this -> escort , $ this , $ args ) ; $ this -> _subItems [ ] = $ page ; return $ page ; }
Add a sub item to this item.

The argumenets can be any of those used for \Zend_Navigation_Page as well as some Gems specials.<ul>
<li>'action' The name of the action.</li>
<li>'allowed' Is the user allowed to access this menu item. Is checked against ACL using 'privilige'.</li>
<li>'button_only' Never in the menu, only shown as a button by the program.</li>
<li>'class' Display class for the menu link.</li>
<li>'controller' What controller to use.</li>
<li>'icon' Icon to display with the label.</li>
<li>'label' The label to display for the menu item.</li>
<li>'privilege' The privilege needed to choose the item.</li>
<li>'target' Optional target attribute for the link.</li>
<li>'type' Optional content type for the link</li>
<li>'visible' Is the item visible. Is checked against ACL using 'privilige'.</li>
</ul>

@see \Zend_Navigation_Page

@param array $argsArray \MUtil_Ra::args array with defaults 'visible' and 'allowed' true.
@return \Gems_Menu_SubMenuItem
Add a sub item to this item .