C# 클래스 Sitecore.SharedSource.Commons.Extensions.StringExtensions

Extends the string class for custom methods
파일 보기 프로젝트 열기: Velir/Sitecore-Commons

공개 메소드들

메소드 설명
GetItemByUrlParts ( this url ) : Item

Gets the item by url

GetItemByUrlParts ( this url, Database database ) : Item

Gets the item by url

GetItemByUrlParts ( this url, Database database, bool replaceDashes ) : Item

Gets the item by url

GetItemByUrlParts ( this url, Database database, bool replaceDashes, string sitePath ) : Item
QueryEscape ( this path ) : string

takes this string /sitecore/content/Home/Certified Education/Certified Learning/EO_MKM_0512/EO_Activity 0512/Module EAO and returns this string /#sitecore#/#content#/#Home#/#Certified Education#/#Certified Learning#/#EO_MKM_0512#/#EO_Activity 0512#/#Module EAO# Expects a leading slash and no trailing slash. This is what we get when calling InnerItem.Paths.path;

The xpath processor attempts to interpret certain words as keywords if they are found in an item's path. Examples include: "and", "or", and names with leading numbers

메소드 상세

GetItemByUrlParts() 공개 정적인 메소드

Gets the item by url
public static GetItemByUrlParts ( this url ) : Item
url this
리턴 Item

GetItemByUrlParts() 공개 정적인 메소드

Gets the item by url
public static GetItemByUrlParts ( this url, Database database ) : Item
url this
database Database
리턴 Item

GetItemByUrlParts() 공개 정적인 메소드

Gets the item by url
public static GetItemByUrlParts ( this url, Database database, bool replaceDashes ) : Item
url this
database Database
replaceDashes bool
리턴 Item

GetItemByUrlParts() 공개 정적인 메소드

public static GetItemByUrlParts ( this url, Database database, bool replaceDashes, string sitePath ) : Item
url this
database Database
replaceDashes bool
sitePath string
리턴 Item

QueryEscape() 공개 정적인 메소드

takes this string /sitecore/content/Home/Certified Education/Certified Learning/EO_MKM_0512/EO_Activity 0512/Module EAO and returns this string /#sitecore#/#content#/#Home#/#Certified Education#/#Certified Learning#/#EO_MKM_0512#/#EO_Activity 0512#/#Module EAO# Expects a leading slash and no trailing slash. This is what we get when calling InnerItem.Paths.path;
The xpath processor attempts to interpret certain words as keywords if they are found in an item's path. Examples include: "and", "or", and names with leading numbers
public static QueryEscape ( this path ) : string
path this
리턴 string