public function setModel($model, $forceWrapper = FALSE)
    {
        $this->model = $model instanceof DataSources\IDataSource && $forceWrapper === FALSE
            ? $model
            : new DataSources\Model($model);

        return $this;
    }
public function setModel($model, $forceWrapper = FALSE)
    {
        $this->model = $model instanceof DataSources\IDataSource && $forceWrapper === FALSE
            ? $model
            : new DataSources\Model($model);

        return $this;
    }
public function setModel ( $ model , $ forceWrapper = FALSE ) { $ this -> model = $ model instanceof DataSources \ IDataSource && $ forceWrapper === FALSE ? $ model : new DataSources \ Model ( $ model ) ; return $ this ; }
Sets a model that implements the interface Grido\DataSources\IDataSource or data-source object.
@param mixed $model
@param bool $forceWrapper
@throws Exception
@return Grid
Sets a model that implements the interface Grido \ DataSources \ IDataSource or data - source object .