library/Garp/Browsebox.php
protected function _fetchContent($chunk) {
        $model = $this->getModel();
        $select = clone $this->getSelect();
        
        $select->limit(
            $this->_options['chunkSize'] * $this->_options['pageSize'], 
            (($chunk-1) * ($this->_options['pageSize'] * $this->_options['chunkSize']))
        );
        
        /**
         * Filters may take over the fetching of results. This is neccessary for instance when you're filtering content on a HABTM related model. (in the same way Model Behaviors may return data in the beforeFetch callback)
         */
        if ($content = $this->_fetchContentFromFilters($select)) {
            return $content;
        } else {
            return $model->fetchAll($select);
        }
    }
protected function _fetchContent($chunk) {
        $model = $this->getModel();
        $select = clone $this->getSelect();
        
        $select->limit(
            $this->_options['chunkSize'] * $this->_options['pageSize'], 
            (($chunk-1) * ($this->_options['pageSize'] * $this->_options['chunkSize']))
        );
        
        /**
         * Filters may take over the fetching of results. This is neccessary for instance when you're filtering content on a HABTM related model. (in the same way Model Behaviors may return data in the beforeFetch callback)
         */
        if ($content = $this->_fetchContentFromFilters($select)) {
            return $content;
        } else {
            return $model->fetchAll($select);
        }
    }
protected function _fetchContent ( $ chunk ) { $ model = $ this -> getModel ( ) ; $ select = clone $ this -> getSelect ( ) ; $ select -> limit ( $ this -> _options [ 'chunkSize' ] * $ this -> _options [ 'pageSize' ] , ( ( $ chunk - 1 ) * ( $ this -> _options [ 'pageSize' ] * $ this -> _options [ 'chunkSize' ] ) ) ) ; /**
         * Filters may take over the fetching of results. This is neccessary for instance when you're filtering content on a HABTM related model. (in the same way Model Behaviors may return data in the beforeFetch callback)
         */ if ( $ content = $ this -> _fetchContentFromFilters ( $ select ) ) { return $ content ; } else { return $ model -> fetchAll ( $ select ) ; } }
Fetch records matching the given conditions
@param Int $chunk The chunk index
@return Zend_Db_Table_Rowset
Fetch records matching the given conditions