Метод |
Описание |
|
createFieldGroupModel ( string $group ) : Craft\FieldGroupModel |
Creates new or updates existing group model. |
|
deleteFields ( ) |
Removes fields that where not imported. |
|
deleteFieldsAndGroups ( ) |
Removes fields and groups that where not imported. |
|
deleteGroups ( ) |
Removes groups that where not imported. |
|
getContentService ( ) : ContentService |
Returns content service. |
|
getFieldDefinition ( Craft\FieldModel $field ) : array |
Get field definition. |
|
getFieldLayoutFieldsDefinition ( array $fields ) : array |
Get field layout fields definition. |
|
getFieldModel ( string $field ) : Craft\FieldModel |
|
|
getFieldsService ( ) : FieldsService |
Returns fields service. |
|
getPrepareFieldLayout ( array $fieldLayoutDef ) : array |
Get a prepared fieldLayout for the craft assembleLayout function. |
|
importFields ( array $fieldDefinitions, Craft\FieldGroupModel $group ) |
Import field group fields. |
|
resetCraftFieldsServiceFieldsCache ( ) |
Reset craft fields service fields cache using reflection. |
|
resetCraftFieldsServiceGroupsCache ( ) |
Reset craft fields service groups cache using reflection. |
|
saveFieldGroupModel ( Craft\FieldGroupModel $group ) |
Save field group. |
|
saveFieldModel ( Craft\FieldModel $field ) |
Save field. |
|
unsetData ( string $name, array $definitions ) |
Unset group and field data else $force flag will delete it. |
|
validateFieldModel ( Craft\FieldModel $field ) |
Validates field type, throw error when it's incorrect. |
|