C# Class Sitecore.SharedSource.Commons.Utilities.FieldUtil

Exibir arquivo Open project: Velir/Sitecore-Commons

Public Methods

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

Method Details

CheckIfFieldIsExcluded() public static method

Checks if field should be excluded from Generator.
public static CheckIfFieldIsExcluded ( FieldType fieldType ) : bool
fieldType FieldType Type of the field.
return bool

CheckIfFieldPageEditable() public static method

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

GetAllFields() public static method

Gets both user nad system fields from a FieldCollection.
public static GetAllFields ( FieldCollection fields ) : List
fields FieldCollection The fields.
return List

GetFieldType() public static method

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

GetSystemFields() public static method

Gets the system fields from a FieldCollection.
public static GetSystemFields ( FieldCollection fields ) : List
fields FieldCollection The fields.
return List

GetUserFields() public static method

Gets the non system fields from a FieldCollection.
public static GetUserFields ( FieldCollection fields ) : List
fields FieldCollection The fields.
return List

GetUserRichTextFields() public static method

Gets the non system rich text fields from a FieldCollection.
public static GetUserRichTextFields ( FieldCollection fields ) : List
fields FieldCollection The fields.
return List