private function load($type)
    {
        $index = $this->$type;
        if ($index) {
            return;
        }

        $cache = $this->di->get("cache");
        $key = $cache->createKey(__CLASS__, $type);
        $index = $cache->get($key);

        if (is_null($index) || $this->ignoreCache) {
            $createMethod = "create$type";
            $index = $this->$createMethod();
            $cache->put($key, $index);
        }

        $this->$type = $index;
    }
private function load($type)
    {
        $index = $this->$type;
        if ($index) {
            return;
        }

        $cache = $this->di->get("cache");
        $key = $cache->createKey(__CLASS__, $type);
        $index = $cache->get($key);

        if (is_null($index) || $this->ignoreCache) {
            $createMethod = "create$type";
            $index = $this->$createMethod();
            $cache->put($key, $index);
        }

        $this->$type = $index;
    }
private function load ( $ type ) { $ index = $ this -> $ type ; if ( $ index ) { return ; } $ cache = $ this -> di -> get ( "cache" ) ; $ key = $ cache -> createKey ( __CLASS__ , $ type ) ; $ index = $ cache -> get ( $ key ) ; if ( is_null ( $ index ) || $ this -> ignoreCache ) { $ createMethod = "create$type" ; $ index = $ this -> $ createMethod ( ) ; $ cache -> put ( $ key , $ index ) ; } $ this -> $ type = $ index ; }
Create the index of all content into an array.

@param string $type of index to load.

@return void.
Create the index of all content into an array .