original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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.
docstring_tokens: Gets or sets the default model of the paged sets