PHP Класс Devise\Pages\Fields\FieldManager

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( DvsField $Field, DvsGlobalField $GlobalField, FieldsRepository $FieldsRepository, Framework $Framework ) Construct a new Field Manager
markNoContentRequested ( array $fieldIds ) : boolean Sets a series of fields content requested to false
resetField ( integer $fieldId, $scope ) : DvsField Reset field values
updateField ( integer $fieldId, array $input ) : DvsField Updates the field

Защищенные методы

Метод Описание
changeFieldScope ( DvsField | DvsGlobalField $field, string $newScope, $fieldInput, $pageInput ) : DvsField | DvsGlobalField Changes the field scope
changeToGlobalField ( array $fieldInput, array $pageInput ) : DvsGlobalField Changes this page field to a global field
changeToPageField ( array $fieldInput, array $pageInput ) : DvsField Changes this global field to a page field
getFieldToUpdate ( integer $fieldId, $fieldInput, $pageInput ) : Field This function will get us our field
newGlobalField ( $languageId, $key, $type, $humanName ) : PageField Create page field given input
newPageField ( $pageVersionId, $key, $type, $humanName ) : PageField Create page field given input
removePristinePageFields ( $key ) : void Removes the pristine page fields for this global field. We only do this when we *first* create the global field

Описание методов

__construct() публичный Метод

Construct a new Field Manager
public __construct ( DvsField $Field, DvsGlobalField $GlobalField, FieldsRepository $FieldsRepository, Framework $Framework )
$Field DvsField
$GlobalField DvsGlobalField
$FieldsRepository FieldsRepository
$Framework Devise\Support\Framework

changeFieldScope() защищенный Метод

Changes the field scope
protected changeFieldScope ( DvsField | DvsGlobalField $field, string $newScope, $fieldInput, $pageInput ) : DvsField | DvsGlobalField
$field DvsField | DvsGlobalField
$newScope string
Результат DvsField | DvsGlobalField

changeToGlobalField() защищенный Метод

Changes this page field to a global field
protected changeToGlobalField ( array $fieldInput, array $pageInput ) : DvsGlobalField
$fieldInput array
$pageInput array
Результат DvsGlobalField

changeToPageField() защищенный Метод

Changes this global field to a page field
protected changeToPageField ( array $fieldInput, array $pageInput ) : DvsField
$fieldInput array
$pageInput array
Результат DvsField

getFieldToUpdate() защищенный Метод

This function will get us our field
protected getFieldToUpdate ( integer $fieldId, $fieldInput, $pageInput ) : Field
$fieldId integer
Результат Field

markNoContentRequested() публичный Метод

Sets a series of fields content requested to false
public markNoContentRequested ( array $fieldIds ) : boolean
$fieldIds array Array of field ids
Результат boolean

newGlobalField() защищенный Метод

Create page field given input
protected newGlobalField ( $languageId, $key, $type, $humanName ) : PageField
Результат PageField

newPageField() защищенный Метод

Create page field given input
protected newPageField ( $pageVersionId, $key, $type, $humanName ) : PageField
Результат PageField

removePristinePageFields() защищенный Метод

Removes the pristine page fields for this global field. We only do this when we *first* create the global field
protected removePristinePageFields ( $key ) : void
Результат void

resetField() публичный Метод

Reset field values
public resetField ( integer $fieldId, $scope ) : DvsField
$fieldId integer
Результат DvsField | \DvsGlobalField

updateField() публичный Метод

Updates the field
public updateField ( integer $fieldId, array $input ) : DvsField
$fieldId integer
$input array
Результат DvsField | \DvsGlobaField