protected function load(core_kernel_classes_Class $class, $offset)
    {
        $results = $this->loadResources($class, $offset);
        $this->instanceCache = array();
        foreach ($results as $resource) {
            $this->instanceCache[$offset] = $resource->getUri();
            $offset++;
        }
        
        $this->endOfClass = count($results) < self::CACHE_SIZE;
        
        return count($results) > 0;
    }
protected function load(core_kernel_classes_Class $class, $offset)
    {
        $results = $this->loadResources($class, $offset);
        $this->instanceCache = array();
        foreach ($results as $resource) {
            $this->instanceCache[$offset] = $resource->getUri();
            $offset++;
        }
        
        $this->endOfClass = count($results) < self::CACHE_SIZE;
        
        return count($results) > 0;
    }
protected function load ( core_kernel_classes_Class $ class , $ offset ) { $ results = $ this -> loadResources ( $ class , $ offset ) ; $ this -> instanceCache = array ( ) ; foreach ( $ results as $ resource ) { $ this -> instanceCache [ $ offset ] = $ resource -> getUri ( ) ; $ offset ++ ; } $ this -> endOfClass = count ( $ results ) < self :: CACHE_SIZE ; return count ( $ results ) > 0 ; }
Load instances into cache

@param core_kernel_classes_Class $class
@param int $offset
@return boolean
Load instances into cache