Méthode | Description | |
---|---|---|
__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 |
Méthode | Description | |
---|---|---|
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 | |
Résultat | DvsField | DvsGlobalField |
protected changeToGlobalField ( array $fieldInput, array $pageInput ) : DvsGlobalField | ||
$fieldInput | array | |
$pageInput | array | |
Résultat | DvsGlobalField |
protected changeToPageField ( array $fieldInput, array $pageInput ) : DvsField | ||
$fieldInput | array | |
$pageInput | array | |
Résultat | DvsField |
protected getFieldToUpdate ( integer $fieldId, $fieldInput, $pageInput ) : Field | ||
$fieldId | integer | |
Résultat | Field |
public markNoContentRequested ( array $fieldIds ) : boolean | ||
$fieldIds | array | Array of field ids |
Résultat | boolean |
protected newGlobalField ( $languageId, $key, $type, $humanName ) : PageField | ||
Résultat | PageField |
protected newPageField ( $pageVersionId, $key, $type, $humanName ) : PageField | ||
Résultat | PageField |
protected removePristinePageFields ( $key ) : void | ||
Résultat | void |
public resetField ( integer $fieldId, $scope ) : DvsField | ||
$fieldId | integer | |
Résultat | DvsField | | \DvsGlobalField |
public updateField ( integer $fieldId, array $input ) : DvsField | ||
$fieldId | integer | |
$input | array | |
Résultat | DvsField | | \DvsGlobaField |