C# Класс Sitecore.SharedSource.Commons.Extensions.StringExtensions

Extends the string class for custom methods
Показать файл Открыть проект

Открытые методы

Метод Описание
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