static function PageUrl(Page $page, array $params = array(), $fragment = '')
    {
        $siteUrl = $page->GetSite()->GetUrl();
        $pageUrl = $page->GetUrl();
        if ($pageUrl == 'index.html') {
            $url = $siteUrl;
        }
        else {
            $url = Path::Combine($siteUrl, $pageUrl);
        }

        $oblParams = self::GatherParams($url);
        $urlObl = self::AttachObligatoryParams($url, $oblParams, $params);

        $urlAllParams = self::AttachMoreParams($urlObl, $oblParams, $params);
        return $fragment ? $urlAllParams . '#' . $fragment : $urlAllParams;
    }
static function PageUrl(Page $page, array $params = array(), $fragment = '')
    {
        $siteUrl = $page->GetSite()->GetUrl();
        $pageUrl = $page->GetUrl();
        if ($pageUrl == 'index.html') {
            $url = $siteUrl;
        }
        else {
            $url = Path::Combine($siteUrl, $pageUrl);
        }

        $oblParams = self::GatherParams($url);
        $urlObl = self::AttachObligatoryParams($url, $oblParams, $params);

        $urlAllParams = self::AttachMoreParams($urlObl, $oblParams, $params);
        return $fragment ? $urlAllParams . '#' . $fragment : $urlAllParams;
    }
static function PageUrl ( Page $ page , array $ params = array ( ) , $ fragment = '' ) { $ siteUrl = $ page -> GetSite ( ) -> GetUrl ( ) ; $ pageUrl = $ page -> GetUrl ( ) ; if ( $ pageUrl == 'index.html' ) { $ url = $ siteUrl ; } else { $ url = Path :: Combine ( $ siteUrl , $ pageUrl ) ; } $ oblParams = self :: GatherParams ( $ url ) ; $ urlObl = self :: AttachObligatoryParams ( $ url , $ oblParams , $ params ) ; $ urlAllParams = self :: AttachMoreParams ( $ urlObl , $ oblParams , $ params ) ; return $ fragment ? $ urlAllParams . '#' . $ fragment : $ urlAllParams ; }
Returns the url of a page with parameters and fragment
@param Page $page The page
@param array $params All parameters
@return string Return the page url
Returns the url of a page with parameters and fragment