Class FieldTypeService
- Namespace
- Dynamicweb.Ecommerce.Products
- Assembly
- Dynamicweb.Ecommerce.dll
- Inheritance
-
Field
Type Service
- Implements
- Inherited Members
Methods
ClearCache()
Clears the field types cache
ClearCache(IEnumerable<int>)
Resets the specified keys to the default value for objects stored in the object cache
Parameters
keys
IEnumerable<int>Keys to reset
ClearCache(int)
Resets the specified key to the default value for objects stored in the object cache
Parameters
key
intKey to reset
Delete(int)
Delete the field type from the database
Parameters
id
intThe id of the field type, which should be deleted
GetById(int)
Gets the field type by id
Parameters
id
intThe id of the field type
Returns
- Field
Type The FieldType object
GetByName(string)
Parameters
typename
string
Returns
GetFieldTypes(bool)
Load custom field types
Parameters
showAdvanced
boolInclude or not advanced types
Returns
- IEnumerable<Field
Type > Collection of FieldType objects
GetTypeName(FieldType)
Gives the english names of the field type for the standard ones and returns the non-translated name for all non-standard field types
Parameters
fieldType
FieldType The field type with the name which will be mapped
Returns
- string
The english name of the field type if the field type is standard, otherwise it will just return the name of the field type
IsUsed(int)
Checks if the current field type is used in either OrderField, ProductField, GroupField or ProductCategoryField
Parameters
id
intThe id of the field type to check if used
Returns
- bool
true if the field type is used on a field otherwise false
Save(FieldType)
Saves the field type object in the database
Parameters
fieldType
FieldType The field type object to be saved
Returns
- int
The identity of the database row which was inserted