public function addShowAction($privilege = null, array $other = array())
    {
        if (isset($other['label'])) {
            $label = $other['label'];
            unset($other['label']);
        } else {
            $label = $this->_('Show');
        }

        $menu = $this->addAction($label, $privilege, 'show', $other);
        $menu->setModelParameters(1);

        return $menu;
    }
public function addShowAction($privilege = null, array $other = array())
    {
        if (isset($other['label'])) {
            $label = $other['label'];
            unset($other['label']);
        } else {
            $label = $this->_('Show');
        }

        $menu = $this->addAction($label, $privilege, 'show', $other);
        $menu->setModelParameters(1);

        return $menu;
    }
public function addShowAction ( $ privilege = null , array $ other = array ( ) ) { if ( isset ( $ other [ 'label' ] ) ) { $ label = $ other [ 'label' ] ; unset ( $ other [ 'label' ] ) ; } else { $ label = $ this -> _ ( 'Show' ) ; } $ menu = $ this -> addAction ( $ label , $ privilege , 'show' , $ other ) ; $ menu -> setModelParameters ( 1 ) ; return $ menu ; }
Add a standard show action to the current menu item

@param string $privilege A privilege name, defaults to parent + .show when not specified
@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 a standard show action to the current menu item