public function getSiteByRootPageId($rootPageId)
    {
        $cacheId = 'SiteRepository' . '_' . 'getSiteByPageId' . '_' . $rootPageId;

        $methodResult = $this->runtimeCache->get($cacheId);
        if (!empty($methodResult)) {
            return $methodResult;
        }

        $methodResult = $this->buildSite($rootPageId);
        $this->runtimeCache->set($cacheId, $methodResult);

        return $methodResult;
    }
public function getSiteByRootPageId($rootPageId)
    {
        $cacheId = 'SiteRepository' . '_' . 'getSiteByPageId' . '_' . $rootPageId;

        $methodResult = $this->runtimeCache->get($cacheId);
        if (!empty($methodResult)) {
            return $methodResult;
        }

        $methodResult = $this->buildSite($rootPageId);
        $this->runtimeCache->set($cacheId, $methodResult);

        return $methodResult;
    }
public function getSiteByRootPageId ( $ rootPageId ) { $ cacheId = 'SiteRepository' . '_' . 'getSiteByPageId' . '_' . $ rootPageId ; $ methodResult = $ this -> runtimeCache -> get ( $ cacheId ) ; if ( ! empty ( $ methodResult ) ) { return $ methodResult ; } $ methodResult = $ this -> buildSite ( $ rootPageId ) ; $ this -> runtimeCache -> set ( $ cacheId , $ methodResult ) ; return $ methodResult ; }
Gets the Site for a specific root page Id.

@param int $rootPageId Root page Id to get a Site object for.
@return Site Site for the given page Id.
Gets the Site for a specific root page Id .