original_string: public function params($model = null)
      {
          $request = $this->_View->getRequest();
  
          if (empty($model)) {
              $model = $this->defaultModel();
          }
          if (!$request->getParam('paging') || !$request->getParam('paging.' . $model)) {
              return [];
          }
  
          return $request->getParam('paging.' . $model);
      }
code: public function params($model = null)
      {
          $request = $this->_View->getRequest();
  
          if (empty($model)) {
              $model = $this->defaultModel();
          }
          if (!$request->getParam('paging') || !$request->getParam('paging.' . $model)) {
              return [];
          }
  
          return $request->getParam('paging.' . $model);
      }
code_tokens: public function params ( $ model = null ) { $ request = $ this -> _View -> getRequest ( ) ; if ( empty ( $ model ) ) { $ model = $ this -> defaultModel ( ) ; } if ( ! $ request -> getParam ( 'paging' ) || ! $ request -> getParam ( 'paging.' . $ model ) ) { return [ ] ; } return $ request -> getParam ( 'paging.' . $ model ) ; }
docstring: Gets the current paging parameters from the resultset for the given model
  
  @param string|null $model Optional model name. Uses the default if none is specified.
  @return array The array of paging parameters for the paginated resultset.
docstring_tokens: Gets the current paging parameters from the resultset for the given model