original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: 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
docstring_tokens: Add an action to the current subMenuItem