DefaultController::getManifest PHP Method

getManifest() protected method

protected getManifest ( $forceReload = false )
    protected function getManifest($forceReload = false)
    {
        if ($this->_manifest === null || $forceReload) {
            if ($forceReload) {
                clearstatcache();
            }
            $path = $this->getOwner()->logPath;
            $indexFile = "{$path}/index.data";
            $content = '';
            if (($fp = @fopen($indexFile, 'r')) !== false) {
                @flock($fp, LOCK_SH);
                $content = fread($fp, filesize($indexFile));
                @flock($fp, LOCK_UN);
                fclose($fp);
            }
            if ($content !== '') {
                $this->_manifest = array_reverse(unserialize($content), true);
            } else {
                $this->_manifest = array();
            }
        }
        return $this->_manifest;
    }