original_string: 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;
              }
          }
      }
code: 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;
              }
          }
      }
code_tokens: 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 ; } } }
docstring: 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
docstring_tokens: Finds the first item with one of the actions specified as parameter and using the current controller