original_string: protected function filterLimitOffset(&$filter, $select)
      {
          $limit = null;
          $offset = null;
  
          if (array_key_exists('limit', $filter)) {
              $limit = (int) $filter['limit'];
              unset($filter['limit']);
          }
          if (array_key_exists('offset', $filter)) {
              $offset = (int) $filter['offset'];
              unset($filter['offset']);
          }
          $select->limit($limit, $offset);
      }
code: protected function filterLimitOffset(&$filter, $select)
      {
          $limit = null;
          $offset = null;
  
          if (array_key_exists('limit', $filter)) {
              $limit = (int) $filter['limit'];
              unset($filter['limit']);
          }
          if (array_key_exists('offset', $filter)) {
              $offset = (int) $filter['offset'];
              unset($filter['offset']);
          }
          $select->limit($limit, $offset);
      }
code_tokens: protected function filterLimitOffset ( & $ filter , $ select ) { $ limit = null ; $ offset = null ; if ( array_key_exists ( 'limit' , $ filter ) ) { $ limit = ( int ) $ filter [ 'limit' ] ; unset ( $ filter [ 'limit' ] ) ; } if ( array_key_exists ( 'offset' , $ filter ) ) { $ offset = ( int ) $ filter [ 'offset' ] ; unset ( $ filter [ 'offset' ] ) ; } $ select -> limit ( $ limit , $ offset ) ; }
docstring: Extract limit and offset from the filter and add it to a select
  
  @param array $filter
  @param \Zend_Db_Select $select
docstring_tokens: Extract limit and offset from the filter and add it to a select