C# Класс Glass.Mapper.Sc.Utilities

Class Utilities
Наследование: Mapper.Utilities
Показать файл Открыть проект

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

Метод Описание
ConstructQueryString ( NameValueCollection parameters ) : string

Constructs the query string.

ConvertAttributes ( NameValueCollection attributes ) : string

Converts a NameValueCollection into HTML attributes

ConvertAttributes ( SafeDictionary attributes, string quotationMark ) : string

Converts a SafeDictionary into HTML attributes

CreateFakeItem ( string>.Dictionary fields, ID templateId, Database database, string name = "ItemName" ) : System.Item
CreateFakeItem ( string>.Dictionary fields, string name = "itemName" ) : System.Item
GetField ( System.Item item, ID fieldId, string fieldName = "" ) : Field

Gets the field.

GetGenericOuter ( Type type ) : Type

Gets the generic outer.

GetLanguageItem ( System.Item foundItem, System.Language language, IItemVersionHandler versionHandler ) : System.Item

Gets the language item.

GetLanguageItems ( IEnumerable foundItems, System.Language language, IItemVersionHandler versionHandler ) : IEnumerable

Gets the language items.

ResizeImage ( int imageW, int imageH, float imageScale, int w, int h, int maxW, int maxH ) : Size

Описание методов

ConstructQueryString() публичный статический Метод

Constructs the query string.
public static ConstructQueryString ( NameValueCollection parameters ) : string
parameters System.Collections.Specialized.NameValueCollection The parameters.
Результат string

ConvertAttributes() публичный статический Метод

Converts a NameValueCollection into HTML attributes
public static ConvertAttributes ( NameValueCollection attributes ) : string
attributes System.Collections.Specialized.NameValueCollection A list of attributes to convert
Результат string

ConvertAttributes() публичный статический Метод

Converts a SafeDictionary into HTML attributes
public static ConvertAttributes ( SafeDictionary attributes, string quotationMark ) : string
attributes SafeDictionary A list of attributes to convert
quotationMark string
Результат string

CreateFakeItem() публичный статический Метод

public static CreateFakeItem ( string>.Dictionary fields, ID templateId, Database database, string name = "ItemName" ) : System.Item
fields string>.Dictionary
templateId ID
database Database
name string
Результат System.Item

CreateFakeItem() публичный статический Метод

public static CreateFakeItem ( string>.Dictionary fields, string name = "itemName" ) : System.Item
fields string>.Dictionary
name string
Результат System.Item

GetField() публичный статический Метод

Gets the field.
public static GetField ( System.Item item, ID fieldId, string fieldName = "" ) : Field
item System.Item The item.
fieldId ID The field id.
fieldName string Name of the field.
Результат Field

GetGenericOuter() публичный статический Метод

Gets the generic outer.
public static GetGenericOuter ( Type type ) : Type
type System.Type The type.
Результат System.Type

GetLanguageItem() публичный статический Метод

Gets the language item.
public static GetLanguageItem ( System.Item foundItem, System.Language language, IItemVersionHandler versionHandler ) : System.Item
foundItem System.Item The found item.
language System.Language The language.
versionHandler IItemVersionHandler
Результат System.Item

GetLanguageItems() публичный статический Метод

Gets the language items.
public static GetLanguageItems ( IEnumerable foundItems, System.Language language, IItemVersionHandler versionHandler ) : IEnumerable
foundItems IEnumerable The found items.
language System.Language The language.
versionHandler IItemVersionHandler
Результат IEnumerable

ResizeImage() публичный статический Метод

public static ResizeImage ( int imageW, int imageH, float imageScale, int w, int h, int maxW, int maxH ) : Size
imageW int
imageH int
imageScale float
w int
h int
maxW int
maxH int
Результат Size