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

Afficher le fichier Open project: Velir/Sitecore-Commons

Méthodes publiques

Méthode 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 méthode

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

CheckIfFieldPageEditable() public static méthode

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.
Résultat bool

GetAllFields() public static méthode

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

GetFieldType() public static méthode

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.
Résultat FieldType

GetSystemFields() public static méthode

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

GetUserFields() public static méthode

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

GetUserRichTextFields() public static méthode

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