FieldsRepository
class FieldsRepository
Fields repository allows us to retrieve fields that belong to page versions and keys and have been deleted. We also can find global fields with this repository.
Methods
Construct a new FieldsRepository
Find existing page field given key and pageId
Find existing page field (only if it has been trashed)
Find existing global field (only if it has been trashed)
Find the field by id
Find a field by it's id and scope (page or global)
Find a field by it's scope and included fields that have been deleted
Find a field by it's global key and language id
Find all fields where content requested is true for given page version id and builds a list of field keys
Details
at line 32
__construct(DvsField $Field, DvsGlobalField $GlobalField)
Construct a new FieldsRepository
at line 45
Field
findFieldByKeyAndPageVersion($key, $pageVersionId, $collectionInstanceId)
Find existing page field given key and pageId
at line 61
Field
findTrashedFieldByKeyAndPageVersion($key, $pageVersionId)
Find existing page field (only if it has been trashed)
at line 78
DvsGlobalField
findTrashedGlobalFieldByKeyAndLanguage(string $key, integer $languageId)
Find existing global field (only if it has been trashed)
at line 93
DvsField
findFieldById(integer $id)
Find the field by id
at line 105
DvsField
findFieldByIdAndScope(integer $fieldId, string $fieldScope)
Find a field by it's id and scope (page or global)
at line 117
DvsField
findTrashedFieldByIdAndScope(integer $fieldId, string $fieldScope)
Find a field by it's scope and included fields that have been deleted
at line 129
DvsGlobalField
findFieldByGlobalKeyAndLanguage(string $key, integer $languageId)
Find a field by it's global key and language id
at line 141
Field
findContentRequestedFieldsList(integer $pageVersionId)
Find all fields where content requested is true for given page version id and builds a list of field keys