Метод | Описание | |
---|---|---|
__construct ( DvsField $Field, DvsGlobalField $GlobalField, |
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 |
public __construct ( DvsField $Field, DvsGlobalField $GlobalField, |
||
$Field | DvsField | |
$GlobalField | DvsGlobalField | |
$FieldsRepository | ||
$Framework |
protected changeFieldScope ( DvsField | DvsGlobalField $field, string $newScope, $fieldInput, $pageInput ) : DvsField | DvsGlobalField | ||
$field | DvsField | DvsGlobalField | |
$newScope | string | |
Результат | DvsField | DvsGlobalField |
protected changeToGlobalField ( array $fieldInput, array $pageInput ) : DvsGlobalField | ||
$fieldInput | array | |
$pageInput | array | |
Результат | DvsGlobalField |
protected changeToPageField ( array $fieldInput, array $pageInput ) : DvsField | ||
$fieldInput | array | |
$pageInput | array | |
Результат | DvsField |
protected getFieldToUpdate ( integer $fieldId, $fieldInput, $pageInput ) : Field | ||
$fieldId | integer | |
Результат | Field |
public markNoContentRequested ( array $fieldIds ) : boolean | ||
$fieldIds | array | Array of field ids |
Результат | boolean |
protected newGlobalField ( $languageId, $key, $type, $humanName ) : PageField | ||
Результат | PageField |
protected newPageField ( $pageVersionId, $key, $type, $humanName ) : PageField | ||
Результат | PageField |
protected removePristinePageFields ( $key ) : void | ||
Результат | void |
public resetField ( integer $fieldId, $scope ) : DvsField | ||
$fieldId | integer | |
Результат | DvsField | | \DvsGlobalField |
public updateField ( integer $fieldId, array $input ) : DvsField | ||
$fieldId | integer | |
$input | array | |
Результат | DvsField | | \DvsGlobaField |