C# 클래스 Umbraco.Extensions.Utilities.ExtensionMethods

파일 보기 프로젝트 열기: jbreuer/Hybrid-Framework-Best-Practices

Private Properties

프로퍼티 타입 설명
ConstructQueryString string
CropUpExtendedUrl string

공개 메소드들

메소드 설명
AppendOrUpdateQueryString ( this umbraco, string key, string value ) : string

Appends or updates a query string value to the current Url

AppendOrUpdateQueryString ( this umbraco, string url, string key, string value ) : string

Appends or updates a query string value to supplied Url

Config ( this umbraco ) : Configuration

Return an instance of the Configuration class.

GetCroppedImage ( this content, string alias, int width, int height = null, string cropAlias = "", int quality = null, bool slimmage = false, string placeholder = "", string altAlias = "" ) : MediaItemCrop

Return a croped image based on the width and height.

GetCroppedImages ( this content, string alias, int width, int height = null, string cropAlias = "", int quality = null, bool slimmage = false, string altAlias = "" ) : IEnumerable

Return all images with crop based on the width and height.

GetGoogleMapsValues ( this content, string alias ) : GoogleMaps

Return the strings that has been filled in.

GetMediaItem ( this content, string alias, string altAlias = "", string placeholder = "" ) : MediaItem

Return the media item.

GetMediaItems ( this content, string alias, string altAlias = "" ) : IEnumerable

Return all media items.

GetMntpNodes ( this node, string propertyName ) : IEnumerable

Return the nodes selected with MNTP (xml only) as IPublishedContent.

GetMultiUrlPicker ( this content, string alias ) : IEnumerable

Return the Multi UrlPicker that has been selected.

GetMultipleTextStrings ( this content, string alias ) : IEnumerable

Return the strings that has been filled in.

GetPager ( this umbraco, int itemsPerPage, int numberOfItems ) : Pager

Return all fields required for paging.

GetUrlPicker ( this content, string alias ) : UrlPicker

Return the UrlPicker that has been selected.

IsValidEmail ( this umbraco, string email ) : bool

Checks if the e-mail is valid.

LogException ( this umbraco, Exception ex ) : void

Log an exception and send an email.

SendEmail ( this umbraco, string emailFrom, string emailFromName, string emailTo, string subject, string body, string emailCc = "", string emailBcc = "", EmailType emailType = null ) : void

Send the e-mail.

TopPage ( this content ) : IPublishedContent

Return the node where default settings are stored.

비공개 메소드들

메소드 설명
ConstructQueryString ( NameValueCollection parameters, string delimiter, bool omitEmpty ) : string

Constructs a NameValueCollection into a query string.

Consider this method to be the opposite of "System.Web.HttpUtility.ParseQueryString"

CropUpExtendedUrl ( string url, ImageSizeArguments sizeArgs, string additionalVars = "" ) : string

The crop up extended url.

메소드 상세

AppendOrUpdateQueryString() 공개 정적인 메소드

Appends or updates a query string value to the current Url
public static AppendOrUpdateQueryString ( this umbraco, string key, string value ) : string
umbraco this
key string The query string key
value string The query string value
리턴 string

AppendOrUpdateQueryString() 공개 정적인 메소드

Appends or updates a query string value to supplied Url
public static AppendOrUpdateQueryString ( this umbraco, string url, string key, string value ) : string
umbraco this
url string The Url to update
key string The query string key
value string The query string value
리턴 string

Config() 공개 정적인 메소드

Return an instance of the Configuration class.
public static Config ( this umbraco ) : Configuration
umbraco this
리턴 Configuration

GetCroppedImage() 공개 정적인 메소드

Return a croped image based on the width and height.
public static GetCroppedImage ( this content, string alias, int width, int height = null, string cropAlias = "", int quality = null, bool slimmage = false, string placeholder = "", string altAlias = "" ) : MediaItemCrop
content this
alias string
width int
height int
cropAlias string
quality int
slimmage bool
placeholder string
altAlias string
리턴 Umbraco.Extensions.Models.Custom.MediaItemCrop

GetCroppedImages() 공개 정적인 메소드

Return all images with crop based on the width and height.
public static GetCroppedImages ( this content, string alias, int width, int height = null, string cropAlias = "", int quality = null, bool slimmage = false, string altAlias = "" ) : IEnumerable
content this
alias string
width int
height int
cropAlias string
quality int
slimmage bool
altAlias string
리턴 IEnumerable

GetGoogleMapsValues() 공개 정적인 메소드

Return the strings that has been filled in.
public static GetGoogleMapsValues ( this content, string alias ) : GoogleMaps
content this
alias string
리턴 Umbraco.Extensions.Models.Custom.GoogleMaps

GetMediaItem() 공개 정적인 메소드

Return the media item.
public static GetMediaItem ( this content, string alias, string altAlias = "", string placeholder = "" ) : MediaItem
content this
alias string
altAlias string
placeholder string
리턴 Umbraco.Extensions.Models.Custom.MediaItem

GetMediaItems() 공개 정적인 메소드

Return all media items.
public static GetMediaItems ( this content, string alias, string altAlias = "" ) : IEnumerable
content this
alias string
altAlias string
리턴 IEnumerable

GetMntpNodes() 공개 정적인 메소드

Return the nodes selected with MNTP (xml only) as IPublishedContent.
public static GetMntpNodes ( this node, string propertyName ) : IEnumerable
node this
propertyName string
리턴 IEnumerable

GetMultiUrlPicker() 공개 정적인 메소드

Return the Multi UrlPicker that has been selected.
public static GetMultiUrlPicker ( this content, string alias ) : IEnumerable
content this
alias string
리턴 IEnumerable

GetMultipleTextStrings() 공개 정적인 메소드

Return the strings that has been filled in.
public static GetMultipleTextStrings ( this content, string alias ) : IEnumerable
content this
alias string
리턴 IEnumerable

GetPager() 공개 정적인 메소드

Return all fields required for paging.
public static GetPager ( this umbraco, int itemsPerPage, int numberOfItems ) : Pager
umbraco this
itemsPerPage int
numberOfItems int
리턴 Pager

GetUrlPicker() 공개 정적인 메소드

Return the UrlPicker that has been selected.
public static GetUrlPicker ( this content, string alias ) : UrlPicker
content this
alias string
리턴 Umbraco.Extensions.Models.Custom.UrlPicker

IsValidEmail() 공개 정적인 메소드

Checks if the e-mail is valid.
public static IsValidEmail ( this umbraco, string email ) : bool
umbraco this
email string
리턴 bool

LogException() 공개 정적인 메소드

Log an exception and send an email.
public static LogException ( this umbraco, Exception ex ) : void
umbraco this
ex System.Exception
리턴 void

SendEmail() 공개 정적인 메소드

Send the e-mail.
public static SendEmail ( this umbraco, string emailFrom, string emailFromName, string emailTo, string subject, string body, string emailCc = "", string emailBcc = "", EmailType emailType = null ) : void
umbraco this
emailFrom string
emailFromName string
emailTo string
subject string
body string
emailCc string
emailBcc string
emailType EmailType Type of email to set in the db
리턴 void

TopPage() 공개 정적인 메소드

Return the node where default settings are stored.
public static TopPage ( this content ) : IPublishedContent
content this
리턴 IPublishedContent