class FieldManager extends Manager
Class FieldManager
Properties
| $errors | ||
| $message | ||
| $messages |
Methods
|
__construct(Field $Field, GlobalField $GlobalField, FieldsRepository $FieldsRepository, LanguagesRepository $LanguagesRepository)
|
||
| Field |
findOrCreateField(array $input)
Find or create field given input |
|
| Field |
updateField($fieldId, $originalInput)
Updates the field by creating a new version of it. |
|
| PageField |
getPageFieldFromGlobalField($field, $input)
Changes field scope from global to page it does this by creating a page field that overrides the global key |
|
| GlobalField |
getGlobalFieldFromPageField($pageField, $input)
Changes field scope from page to global this removes the page field and creates or finds the global field |
Details
at line 31
public
__construct(Field $Field, GlobalField $GlobalField, FieldsRepository $FieldsRepository, LanguagesRepository $LanguagesRepository)
at line 45
public Field
findOrCreateField(array $input)
Find or create field given input
at line 79
public Field
updateField($fieldId, $originalInput)
Updates the field by creating a new version of it.
at line 172
public PageField
getPageFieldFromGlobalField($field, $input)
Changes field scope from global to page it does this by creating a page field that overrides the global key
at line 194
public GlobalField
getGlobalFieldFromPageField($pageField, $input)
Changes field scope from page to global this removes the page field and creates or finds the global field