public function defaultModel($model = null)
    {
        if ($model !== null) {
            $this->_defaultModel = $model;
        }
        if ($this->_defaultModel) {
            return $this->_defaultModel;
        }
        if (!$this->_View->getRequest()->getParam('paging')) {
            return null;
        }
        list($this->_defaultModel) = array_keys($this->_View->getRequest()->getParam('paging'));

        return $this->_defaultModel;
    }
public function defaultModel($model = null)
    {
        if ($model !== null) {
            $this->_defaultModel = $model;
        }
        if ($this->_defaultModel) {
            return $this->_defaultModel;
        }
        if (!$this->_View->getRequest()->getParam('paging')) {
            return null;
        }
        list($this->_defaultModel) = array_keys($this->_View->getRequest()->getParam('paging'));

        return $this->_defaultModel;
    }
public function defaultModel ( $ model = null ) { if ( $ model !== null ) { $ this -> _defaultModel = $ model ; } if ( $ this -> _defaultModel ) { return $ this -> _defaultModel ; } if ( ! $ this -> _View -> getRequest ( ) -> getParam ( 'paging' ) ) { return null ; } list ( $ this -> _defaultModel ) = array_keys ( $ this -> _View -> getRequest ( ) -> getParam ( 'paging' ) ) ; return $ this -> _defaultModel ; }
Gets or sets the default model of the paged sets

@param string|null $model Model name to set
@return string|null Model name or null if the pagination isn't initialized.
Gets or sets the default model of the paged sets