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

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

        $menu = $this->addAction($label, $privilege, 'import', $other);

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

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

        $menu = $this->addAction($label, $privilege, 'import', $other);

        return $menu;
    }
public function addImportAction ( $ privilege = null , array $ other = array ( ) ) { if ( isset ( $ other [ 'label' ] ) ) { $ label = $ other [ 'label' ] ; unset ( $ other [ 'label' ] ) ; } else { $ label = $ this -> _ ( 'Import' ) ; } if ( null === $ privilege ) { $ privilege = $ this -> get ( 'privilege' ) . '.import' ; } $ menu = $ this -> addAction ( $ label , $ privilege , 'import' , $ other ) ; return $ menu ; }
Add a standard import action to the current menu item

@param string $privilege A privilege name, defaults to parent + .import  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 import action to the current menu item