C# Class Glass.Mapper.Sc.Utilities

Class Utilities
Inheritance: Mapper.Utilities
显示文件 Open project: mikeedwards83/Glass.Mapper

Public Methods

Method Description
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

Method Details

ConstructQueryString() public static method

Constructs the query string.
public static ConstructQueryString ( NameValueCollection parameters ) : string
parameters System.Collections.Specialized.NameValueCollection The parameters.
return string

ConvertAttributes() public static method

Converts a NameValueCollection into HTML attributes
public static ConvertAttributes ( NameValueCollection attributes ) : string
attributes System.Collections.Specialized.NameValueCollection A list of attributes to convert
return string

ConvertAttributes() public static method

Converts a SafeDictionary into HTML attributes
public static ConvertAttributes ( SafeDictionary attributes, string quotationMark ) : string
attributes SafeDictionary A list of attributes to convert
quotationMark string
return string

CreateFakeItem() public static method

public static CreateFakeItem ( string>.Dictionary fields, ID templateId, Database database, string name = "ItemName" ) : System.Item
fields string>.Dictionary
templateId ID
database Database
name string
return System.Item

CreateFakeItem() public static method

public static CreateFakeItem ( string>.Dictionary fields, string name = "itemName" ) : System.Item
fields string>.Dictionary
name string
return System.Item

GetField() public static method

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.
return Field

GetGenericOuter() public static method

Gets the generic outer.
public static GetGenericOuter ( Type type ) : Type
type System.Type The type.
return System.Type

GetLanguageItem() public static method

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
return System.Item

GetLanguageItems() public static method

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
return IEnumerable

ResizeImage() public static method

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
return Size