C# Класс Sitecore.SharedSource.Commons.Utilities.FieldUtil

Показать файл Открыть проект

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

Метод Описание
CheckIfFieldIsExcluded ( FieldType fieldType ) : bool

Checks if field should be excluded from Generator.

CheckIfFieldPageEditable ( FieldType fieldType ) : bool

Checks if field page editable, this is based on the type of field that it is.

GetAllFields ( FieldCollection fields ) : List

Gets both user nad system fields from a FieldCollection.

GetFieldType ( string fieldTypeString ) : FieldType

Translates the field type string from Sitecore to the proper field type enum option

GetSystemFields ( FieldCollection fields ) : List

Gets the system fields from a FieldCollection.

GetUserFields ( FieldCollection fields ) : List

Gets the non system fields from a FieldCollection.

GetUserRichTextFields ( FieldCollection fields ) : List

Gets the non system rich text fields from a FieldCollection.

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

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

Checks if field should be excluded from Generator.
public static CheckIfFieldIsExcluded ( FieldType fieldType ) : bool
fieldType FieldType Type of the field.
Результат bool

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

Checks if field page editable, this is based on the type of field that it is.
public static CheckIfFieldPageEditable ( FieldType fieldType ) : bool
fieldType FieldType Type of the field.
Результат bool

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

Gets both user nad system fields from a FieldCollection.
public static GetAllFields ( FieldCollection fields ) : List
fields FieldCollection The fields.
Результат List

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

Translates the field type string from Sitecore to the proper field type enum option
public static GetFieldType ( string fieldTypeString ) : FieldType
fieldTypeString string The field type string.
Результат FieldType

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

Gets the system fields from a FieldCollection.
public static GetSystemFields ( FieldCollection fields ) : List
fields FieldCollection The fields.
Результат List

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

Gets the non system fields from a FieldCollection.
public static GetUserFields ( FieldCollection fields ) : List
fields FieldCollection The fields.
Результат List

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

Gets the non system rich text fields from a FieldCollection.
public static GetUserRichTextFields ( FieldCollection fields ) : List
fields FieldCollection The fields.
Результат List