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);
    }
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);
    }
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 ) ; }
Extract limit and offset from the filter and add it to a select

@param array $filter
@param \Zend_Db_Select $select
Extract limit and offset from the filter and add it to a select