original_string: public function process($name, array $ids = [])
      {
          $allowActions = $this->getConfig('actions');
  
          if (!Arr::key($name, $allowActions)) {
              throw new \InvalidArgumentException(__d('core', 'Invalid action to perform'));
          }
  
          $action = $allowActions[$name];
          if ($action === false) {
              throw new \InvalidArgumentException(__d('core', 'Action "{0}" is disabled', $name));
          }
  
          if (Arr::in($action, get_class_methods($this->_table))) {
              return $this->_table->{$action}($ids);
          }
  
          return $this->{$action}($ids);
      }
code: public function process($name, array $ids = [])
      {
          $allowActions = $this->getConfig('actions');
  
          if (!Arr::key($name, $allowActions)) {
              throw new \InvalidArgumentException(__d('core', 'Invalid action to perform'));
          }
  
          $action = $allowActions[$name];
          if ($action === false) {
              throw new \InvalidArgumentException(__d('core', 'Action "{0}" is disabled', $name));
          }
  
          if (Arr::in($action, get_class_methods($this->_table))) {
              return $this->_table->{$action}($ids);
          }
  
          return $this->{$action}($ids);
      }
code_tokens: public function process ( $ name , array $ ids = [ ] ) { $ allowActions = $ this -> getConfig ( 'actions' ) ; if ( ! Arr :: key ( $ name , $ allowActions ) ) { throw new \ InvalidArgumentException ( __d ( 'core' , 'Invalid action to perform' ) ) ; } $ action = $ allowActions [ $ name ] ; if ( $ action === false ) { throw new \ InvalidArgumentException ( __d ( 'core' , 'Action "{0}" is disabled' , $ name ) ) ; } if ( Arr :: in ( $ action , get_class_methods ( $ this -> _table ) ) ) { return $ this -> _table -> { $ action } ( $ ids ) ; } return $ this -> { $ action } ( $ ids ) ; }
docstring: Process table method.
  
  @param string $name
  @param array $ids
  @return mixed
docstring_tokens: Process table method .