public function addAction($label, $privilege = null, $action = 'index', array $other = array())
    {
        $other['label']      = $label;
        $other['controller'] = $this->get('controller');
        $other['action']     = $action;

        if (null === $privilege) {
            $privilege = $this->get('privilege');
        }

        if (null !== $privilege) {
            $other['privilege'] = $privilege;
        }

        return $this->add($other);
    }
public function addAction($label, $privilege = null, $action = 'index', array $other = array())
    {
        $other['label']      = $label;
        $other['controller'] = $this->get('controller');
        $other['action']     = $action;

        if (null === $privilege) {
            $privilege = $this->get('privilege');
        }

        if (null !== $privilege) {
            $other['privilege'] = $privilege;
        }

        return $this->add($other);
    }
public function addAction ( $ label , $ privilege = null , $ action = 'index' , array $ other = array ( ) ) { $ other [ 'label' ] = $ label ; $ other [ 'controller' ] = $ this -> get ( 'controller' ) ; $ other [ 'action' ] = $ action ; if ( null === $ privilege ) { $ privilege = $ this -> get ( 'privilege' ) ; } if ( null !== $ privilege ) { $ other [ 'privilege' ] = $ privilege ; } return $ this -> add ( $ other ) ; }
Add an action to the current subMenuItem

@param string $label         The label to display for the menu item
@param string $privilege     The privilege for the item
@param string $action        The name of the action
@param array  $other         Array of extra options for this item, e.g. 'visible', 'allowed', 'class', 'icon', 'target', 'type', 'button_only'
@return \Gems_Menu_SubMenuItem
Add an action to the current subMenuItem