original_string: public function options(array $options = [])
      {
          $request = $this->_View->getRequest();
  
          if (!empty($options['paging'])) {
              $request = $request->withParam(
                  'paging',
                  $options['paging'] + $request->getParam('paging', [])
              );
              unset($options['paging']);
          }
  
          $model = $this->defaultModel();
          if (!empty($options[$model])) {
              $request = $request->withParam(
                  'paging.' . $model,
                  $options[$model] + (array)$request->getParam('paging.' . $model, [])
              );
              unset($options[$model]);
          }
  
          $this->_View->setRequest($request);
  
          $this->_config['options'] = array_filter($options + $this->_config['options']);
          if (empty($this->_config['options']['url'])) {
              $this->_config['options']['url'] = [];
          }
          if (!empty($this->_config['options']['model'])) {
              $this->defaultModel($this->_config['options']['model']);
          }
      }
code: public function options(array $options = [])
      {
          $request = $this->_View->getRequest();
  
          if (!empty($options['paging'])) {
              $request = $request->withParam(
                  'paging',
                  $options['paging'] + $request->getParam('paging', [])
              );
              unset($options['paging']);
          }
  
          $model = $this->defaultModel();
          if (!empty($options[$model])) {
              $request = $request->withParam(
                  'paging.' . $model,
                  $options[$model] + (array)$request->getParam('paging.' . $model, [])
              );
              unset($options[$model]);
          }
  
          $this->_View->setRequest($request);
  
          $this->_config['options'] = array_filter($options + $this->_config['options']);
          if (empty($this->_config['options']['url'])) {
              $this->_config['options']['url'] = [];
          }
          if (!empty($this->_config['options']['model'])) {
              $this->defaultModel($this->_config['options']['model']);
          }
      }
code_tokens: public function options ( array $ options = [ ] ) { $ request = $ this -> _View -> getRequest ( ) ; if ( ! empty ( $ options [ 'paging' ] ) ) { $ request = $ request -> withParam ( 'paging' , $ options [ 'paging' ] + $ request -> getParam ( 'paging' , [ ] ) ) ; unset ( $ options [ 'paging' ] ) ; } $ model = $ this -> defaultModel ( ) ; if ( ! empty ( $ options [ $ model ] ) ) { $ request = $ request -> withParam ( 'paging.' . $ model , $ options [ $ model ] + ( array ) $ request -> getParam ( 'paging.' . $ model , [ ] ) ) ; unset ( $ options [ $ model ] ) ; } $ this -> _View -> setRequest ( $ request ) ; $ this -> _config [ 'options' ] = array_filter ( $ options + $ this -> _config [ 'options' ] ) ; if ( empty ( $ this -> _config [ 'options' ] [ 'url' ] ) ) { $ this -> _config [ 'options' ] [ 'url' ] = [ ] ; } if ( ! empty ( $ this -> _config [ 'options' ] [ 'model' ] ) ) { $ this -> defaultModel ( $ this -> _config [ 'options' ] [ 'model' ] ) ; } }
docstring: Sets default options for all pagination links
  
  @param array $options Default options for pagination links.
  See PaginatorHelper::$options for list of keys.
  @return void
docstring_tokens: Sets default options for all pagination links