C# Class OxxCommerceStarterKit.Web.Helpers.UrlHelpers

Mostra file Open project: episerver/Commerce-Demo-Kit

Public Methods

Method Description
AnonymousObjectToHtmlAttributes ( object htmlAttributes ) : RouteValueDictionary

Replace "_" with "-" to support HTML-5 data-* attributes

BaseUrl ( this url ) : string
ContentUrl ( this urlHelper, EPiServer item ) : string
GetFullUrl ( this request, string relativeUrl ) : Uri

Return url

GetPageRoute ( this requestContext, EPiServer.Core.ContentReference pageLink ) : RouteValueDictionary
GetReferenceFromUrl ( System.Url url ) : int

Get a page reference from the url

Method Details

AnonymousObjectToHtmlAttributes() public static method

Replace "_" with "-" to support HTML-5 data-* attributes
public static AnonymousObjectToHtmlAttributes ( object htmlAttributes ) : RouteValueDictionary
htmlAttributes object
return RouteValueDictionary

BaseUrl() public static method

public static BaseUrl ( this url ) : string
url this
return string

ContentUrl() public static method

public static ContentUrl ( this urlHelper, EPiServer item ) : string
urlHelper this
item EPiServer
return string

GetFullUrl() public static method

Return url
public static GetFullUrl ( this request, string relativeUrl ) : Uri
request this
relativeUrl string
return System.Uri

GetPageRoute() public static method

public static GetPageRoute ( this requestContext, EPiServer.Core.ContentReference pageLink ) : RouteValueDictionary
requestContext this
pageLink EPiServer.Core.ContentReference
return RouteValueDictionary

GetReferenceFromUrl() public static method

Get a page reference from the url
public static GetReferenceFromUrl ( System.Url url ) : int
url System.Url
return int