C# Class Roadkill.Core.Extensions.HtmlHelperLinkExtensions

A set of extension methods for common links throughout the site.
显示文件 Open project: LocalGovDigital/pipeline

Public Methods

Method Description
FileManagerLink ( this helper, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString

Provides a link to the filemanager page, with optional prefix and suffix tags or seperators.

LoginLink ( this helper, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString

Provides a link to the login page, or if the user is logged in, the logout page. Optional prefix and suffix tags or seperators and also included.

MainPageLink ( this helper, string linkText, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString

Provides a link to the index page of the site, with optional prefix and suffix tags or seperators.

NewPageLink ( this helper, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString

Provides a link to the "new page" page, with optional prefix and suffix tags or seperators.

PageLink ( this helper, string linkText, string pageTitle ) : System.Web.Mvc.MvcHtmlString

Provides a link to the page with the provided title, querying it in the database first.

PageLink ( this helper, string linkText, string pageTitle, object htmlAttributes, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString

Provides a link to the page with the provided title, querying it in the database first, with optional prefix and suffix tags or seperators and html attributes.

PageLink ( this helper, string linkText, string pageTitle, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString

Provides a link to the page with the provided title, querying it in the database first, with optional prefix and suffix tags or seperators.

SettingsLink ( this helper, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString

Provides a link to the settings page, with optional prefix and suffix tags or seperators.

Private Methods

Method Description
LoginStatus ( this helper ) : System.Web.Mvc.MvcHtmlString

Method Details

FileManagerLink() public static method

Provides a link to the filemanager page, with optional prefix and suffix tags or seperators.
public static FileManagerLink ( this helper, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString
helper this
prefix string
suffix string
return System.Web.Mvc.MvcHtmlString

LoginLink() public static method

Provides a link to the login page, or if the user is logged in, the logout page. Optional prefix and suffix tags or seperators and also included.
public static LoginLink ( this helper, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString
helper this
prefix string
suffix string
return System.Web.Mvc.MvcHtmlString

MainPageLink() public static method

Provides a link to the index page of the site, with optional prefix and suffix tags or seperators.
public static MainPageLink ( this helper, string linkText, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString
helper this
linkText string
prefix string
suffix string
return System.Web.Mvc.MvcHtmlString

NewPageLink() public static method

Provides a link to the "new page" page, with optional prefix and suffix tags or seperators.
public static NewPageLink ( this helper, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString
helper this
prefix string
suffix string
return System.Web.Mvc.MvcHtmlString

PageLink() public static method

Provides a link to the page with the provided title, querying it in the database first.
public static PageLink ( this helper, string linkText, string pageTitle ) : System.Web.Mvc.MvcHtmlString
helper this
linkText string
pageTitle string
return System.Web.Mvc.MvcHtmlString

PageLink() public static method

Provides a link to the page with the provided title, querying it in the database first, with optional prefix and suffix tags or seperators and html attributes.
public static PageLink ( this helper, string linkText, string pageTitle, object htmlAttributes, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString
helper this
linkText string
pageTitle string
htmlAttributes object Any additional html attributes to add to the link
prefix string
suffix string
return System.Web.Mvc.MvcHtmlString

PageLink() public static method

Provides a link to the page with the provided title, querying it in the database first, with optional prefix and suffix tags or seperators.
public static PageLink ( this helper, string linkText, string pageTitle, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString
helper this
linkText string
pageTitle string
prefix string
suffix string
return System.Web.Mvc.MvcHtmlString

SettingsLink() public static method

Provides a link to the settings page, with optional prefix and suffix tags or seperators.
public static SettingsLink ( this helper, string prefix, string suffix ) : System.Web.Mvc.MvcHtmlString
helper this
prefix string
suffix string
return System.Web.Mvc.MvcHtmlString