Bluz\Grid\Grid::processSource PHP Method

processSource() public method

Process source
public processSource ( ) : self
return self
    public function processSource()
    {
        if (null === $this->adapter) {
            throw new GridException("Grid Adapter is not initiated, please update method init() and try again");
        }
        try {
            $this->data = $this->getAdapter()->process($this->getSettings());
        } catch (\Exception $e) {
            throw new GridException("Grid Adapter can't process request: " . $e->getMessage());
        }
        return $this;
    }