protected function firstAllowedMenuItem($action, $action2 = null)
    {
        $actions = \MUtil_Ra::args(func_get_args());
        $controller = $this->_getParam('controller');

        foreach ($actions as $action) {
            $menuItem = $this->menu->find(array('controller' => $controller, 'action' => $action, 'allowed' => true));

            if ($menuItem) {
                return $menuItem;
            }
        }
    }
protected function firstAllowedMenuItem($action, $action2 = null)
    {
        $actions = \MUtil_Ra::args(func_get_args());
        $controller = $this->_getParam('controller');

        foreach ($actions as $action) {
            $menuItem = $this->menu->find(array('controller' => $controller, 'action' => $action, 'allowed' => true));

            if ($menuItem) {
                return $menuItem;
            }
        }
    }
protected function firstAllowedMenuItem ( $ action , $ action2 = null ) { $ actions = \ MUtil_Ra :: args ( func_get_args ( ) ) ; $ controller = $ this -> _getParam ( 'controller' ) ; foreach ( $ actions as $ action ) { $ menuItem = $ this -> menu -> find ( array ( 'controller' => $ controller , 'action' => $ action , 'allowed' => true ) ) ; if ( $ menuItem ) { return $ menuItem ; } } }
Finds the first item with one of the actions specified as parameter and using the current controller

@param string $action
@param string $action2
@return \Gems_Menu_SubMenuItem
Finds the first item with one of the actions specified as parameter and using the current controller