public function getItems($offset, $itemCountPerPage)
    {
        $cacheKey = $offset . '-' . $itemCountPerPage;

        if (isset($this->preloadCache[$cacheKey])) {
            return $this->preloadCache[$cacheKey];
        }

        return $this->loadItems($offset, $itemCountPerPage);
    }
public function getItems($offset, $itemCountPerPage)
    {
        $cacheKey = $offset . '-' . $itemCountPerPage;

        if (isset($this->preloadCache[$cacheKey])) {
            return $this->preloadCache[$cacheKey];
        }

        return $this->loadItems($offset, $itemCountPerPage);
    }
public function getItems ( $ offset , $ itemCountPerPage ) { $ cacheKey = $ offset . '-' . $ itemCountPerPage ; if ( isset ( $ this -> preloadCache [ $ cacheKey ] ) ) { return $ this -> preloadCache [ $ cacheKey ] ; } return $ this -> loadItems ( $ offset , $ itemCountPerPage ) ; }
Returns an result set of items for a page

@param  int $offset Page offset
@param  int $itemCountPerPage Number of items per page
@return HydratingResultSet
Returns an result set of items for a page