C# Class Phun.Routing.ResourcePathUtility

CMS resource path utility.
Show file Open project: noogen/phuncms Class Usage Examples

Public Methods

Method Description
GetTenantHost ( Uri url ) : string

Gets the current host.

Normalize ( string path ) : string

Applies the path convention.

PhunPartialEditable ( Uri url, string tagName, string contentName, object htmlAttributes ) : string

Phuns the partial editable.

ResourcePathUtility ( ) : System

Initializes a new instance of the ResourcePathUtility class.

Protected Methods

Method Description
GetResourcePath ( string resource ) : string

Gets the resource path.

PhunPartial ( string contentName, Uri url ) : string

Phuns the partial.

Private Methods

Method Description
PhunCmsRenderBundles ( bool includeJquery = true, bool includeJqueryui = true, bool includeBackbone = true, bool includeCkEditor = true, bool includeEditorInit = true ) : string

Method Details

GetResourcePath() protected method

Gets the resource path.
protected GetResourcePath ( string resource ) : string
resource string The resource.
return string

GetTenantHost() public method

Gets the current host.
public GetTenantHost ( Uri url ) : string
url System.Uri The URL.
return string

Normalize() public method

Applies the path convention.
public Normalize ( string path ) : string
path string The path.
return string

PhunPartial() protected method

Phuns the partial.
contentName is required.
protected PhunPartial ( string contentName, Uri url ) : string
contentName string Name of the content.
url System.Uri The URL.
return string

PhunPartialEditable() public method

Phuns the partial editable.
public PhunPartialEditable ( Uri url, string tagName, string contentName, object htmlAttributes ) : string
url System.Uri The URL.
tagName string Name of the tag.
contentName string Name of the content.
htmlAttributes object The HTML attributes.
return string

ResourcePathUtility() public method

Initializes a new instance of the ResourcePathUtility class.
public ResourcePathUtility ( ) : System
return System