C# Class Sitecore.SharedSource.ItemUrlHelper.Model.SiteUrl

Show file Open project: Velir/Sitecore-ItemUrlHelper

Private Properties

Property Type Description
IsValidUri bool

Public Methods

Method Description
GetDefaultSite ( ) : SiteUrl

If a default site is specified in the configuration file, it is returned

GetSiteInfo_ByName ( string name ) : SiteUrl

The site's url is returned through the mapping in the configuration file

GetSiteInfo_ByUrl ( string url ) : SiteUrl

The site's url is returned through the mapping in the configuration file

Private Methods

Method Description
IsValidUri ( string uri ) : bool

Method Details

GetDefaultSite() public static method

If a default site is specified in the configuration file, it is returned
public static GetDefaultSite ( ) : SiteUrl
return SiteUrl

GetSiteInfo_ByName() public static method

The site's url is returned through the mapping in the configuration file
public static GetSiteInfo_ByName ( string name ) : SiteUrl
name string
return SiteUrl

GetSiteInfo_ByUrl() public static method

The site's url is returned through the mapping in the configuration file
public static GetSiteInfo_ByUrl ( string url ) : SiteUrl
url string
return SiteUrl