original_string: public function getWidgetPager(array $options)
      {
          $options += array(
              'key' => 'p',
              'page' => 1,
              'template' => 'common/pager',
              'query' => $this->getQuery(null, array(), 'array')
          );
  
          if (isset($options['query'][$options['key']])) {
              $options['page'] = (int) $options['query'][$options['key']];
          }
  
          $options['query'][$options['key']] = '%num';
  
          $data = array(
              'options' => $options,
              'pager' => $this->pager->build($options)->get()
          );
  
          return $this->render($options['template'], $data);
      }
code: public function getWidgetPager(array $options)
      {
          $options += array(
              'key' => 'p',
              'page' => 1,
              'template' => 'common/pager',
              'query' => $this->getQuery(null, array(), 'array')
          );
  
          if (isset($options['query'][$options['key']])) {
              $options['page'] = (int) $options['query'][$options['key']];
          }
  
          $options['query'][$options['key']] = '%num';
  
          $data = array(
              'options' => $options,
              'pager' => $this->pager->build($options)->get()
          );
  
          return $this->render($options['template'], $data);
      }
code_tokens: public function getWidgetPager ( array $ options ) { $ options += array ( 'key' => 'p' , 'page' => 1 , 'template' => 'common/pager' , 'query' => $ this -> getQuery ( null , array ( ) , 'array' ) ) ; if ( isset ( $ options [ 'query' ] [ $ options [ 'key' ] ] ) ) { $ options [ 'page' ] = ( int ) $ options [ 'query' ] [ $ options [ 'key' ] ] ; } $ options [ 'query' ] [ $ options [ 'key' ] ] = '%num' ; $ data = array ( 'options' => $ options , 'pager' => $ this -> pager -> build ( $ options ) -> get ( ) ) ; return $ this -> render ( $ options [ 'template' ] , $ data ) ; }
docstring: Returns the rendered pager
  @param array $options
  @return string
docstring_tokens: Returns the rendered pager