src/ORM/Behavior/ProcessBehavior.php
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);
    }
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);
    }
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 ) ; }
Process table method.

@param string $name
@param array $ids
@return mixed
Process table method .