private function AddPage(Page $page)
    {
        if (!$this->PageAllowed($page))
        {
            return;
        }
        $params = FrontendRouter::GatherParams($page->GetUrl());
        if (count($params) == 0)
        {
            $changeFreq = ChangeFrequency::ByValue($page->GetSitemapChangeFrequency());
            $priority = $page->GetSitemapRelevance();
            $lastLog = LogEvaluator::LastPageModLog($page, $this->resolver);
            $lastMod = $lastLog ? $lastLog->GetChanged() : null;
            $this->sitemap->AddUrl(FrontendRouter::PageUrl($page), $changeFreq, $priority, $lastMod);
        }
    }
private function AddPage(Page $page)
    {
        if (!$this->PageAllowed($page))
        {
            return;
        }
        $params = FrontendRouter::GatherParams($page->GetUrl());
        if (count($params) == 0)
        {
            $changeFreq = ChangeFrequency::ByValue($page->GetSitemapChangeFrequency());
            $priority = $page->GetSitemapRelevance();
            $lastLog = LogEvaluator::LastPageModLog($page, $this->resolver);
            $lastMod = $lastLog ? $lastLog->GetChanged() : null;
            $this->sitemap->AddUrl(FrontendRouter::PageUrl($page), $changeFreq, $priority, $lastMod);
        }
    }
private function AddPage ( Page $ page ) { if ( ! $ this -> PageAllowed ( $ page ) ) { return ; } $ params = FrontendRouter :: GatherParams ( $ page -> GetUrl ( ) ) ; if ( count ( $ params ) == 0 ) { $ changeFreq = ChangeFrequency :: ByValue ( $ page -> GetSitemapChangeFrequency ( ) ) ; $ priority = $ page -> GetSitemapRelevance ( ) ; $ lastLog = LogEvaluator :: LastPageModLog ( $ page , $ this -> resolver ) ; $ lastMod = $ lastLog ? $ lastLog -> GetChanged ( ) : null ; $ this -> sitemap -> AddUrl ( FrontendRouter :: PageUrl ( $ page ) , $ changeFreq , $ priority , $ lastMod ) ; } }
Adds a single page to the sitemap
@param Page $page The page
Adds a single page to the sitemap