PHP Class Devise\Pages\Fields\FieldsRepository

Afficher le fichier Open project: devisephp/cms Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( DvsField $Field, DvsGlobalField $GlobalField ) Construct a new FieldsRepository
findContentRequestedFieldsList ( integer $pageVersionId ) : Field Find all fields where content requested is true for given page version id and builds a list of field keys
findFieldByGlobalKeyAndLanguage ( string $key, integer $languageId ) : DvsGlobalField Find a field by it's global key and language id
findFieldById ( integer $id ) : DvsField Find the field by id
findFieldByIdAndScope ( integer $fieldId, string $fieldScope ) : DvsField Find a field by it's id and scope (page or global)
findFieldByKeyAndPageVersion ( string $key, $pageVersionId, $collectionInstanceId ) : Field Find existing page field given key and pageId
findPristinePageFields ( string $key ) : Collection Find all pristine page fields that match this key
findTrashedFieldByGlobalKeyAndLanguage ( [type] $key, [type] $languageId ) : [type] [findFieldByGlobalKeyAndLanguage description]
findTrashedFieldByIdAndScope ( integer $fieldId, string $fieldScope ) : DvsField Find a field by it's scope and included fields that have been deleted
findTrashedFieldByKeyAndPageVersion ( string $key, $pageVersionId ) : Field Find existing page field (only if it has been trashed)
findTrashedGlobalFieldByKeyAndLanguage ( string $key, integer $languageId ) : DvsGlobalField Find existing global field (only if it has been trashed)

Method Details

__construct() public méthode

Construct a new FieldsRepository
public __construct ( DvsField $Field, DvsGlobalField $GlobalField )
$Field DvsField
$GlobalField DvsGlobalField

findContentRequestedFieldsList() public méthode

Find all fields where content requested is true for given page version id and builds a list of field keys
public findContentRequestedFieldsList ( integer $pageVersionId ) : Field
$pageVersionId integer
Résultat Field

findFieldByGlobalKeyAndLanguage() public méthode

Find a field by it's global key and language id
public findFieldByGlobalKeyAndLanguage ( string $key, integer $languageId ) : DvsGlobalField
$key string
$languageId integer
Résultat DvsGlobalField

findFieldById() public méthode

Find the field by id
public findFieldById ( integer $id ) : DvsField
$id integer
Résultat DvsField

findFieldByIdAndScope() public méthode

Find a field by it's id and scope (page or global)
public findFieldByIdAndScope ( integer $fieldId, string $fieldScope ) : DvsField
$fieldId integer
$fieldScope string
Résultat DvsField || DvsGlobalField

findFieldByKeyAndPageVersion() public méthode

Find existing page field given key and pageId
public findFieldByKeyAndPageVersion ( string $key, $pageVersionId, $collectionInstanceId ) : Field
$key string
Résultat Field

findPristinePageFields() public méthode

Find all pristine page fields that match this key
public findPristinePageFields ( string $key ) : Collection
$key string
Résultat Collection

findTrashedFieldByGlobalKeyAndLanguage() public méthode

[findFieldByGlobalKeyAndLanguage description]
public findTrashedFieldByGlobalKeyAndLanguage ( [type] $key, [type] $languageId ) : [type]
$key [type]
$languageId [type]
Résultat [type]

findTrashedFieldByIdAndScope() public méthode

Find a field by it's scope and included fields that have been deleted
public findTrashedFieldByIdAndScope ( integer $fieldId, string $fieldScope ) : DvsField
$fieldId integer
$fieldScope string
Résultat DvsField || DvsGlobalField

findTrashedFieldByKeyAndPageVersion() public méthode

Find existing page field (only if it has been trashed)
public findTrashedFieldByKeyAndPageVersion ( string $key, $pageVersionId ) : Field
$key string
Résultat Field

findTrashedGlobalFieldByKeyAndLanguage() public méthode

Find existing global field (only if it has been trashed)
public findTrashedGlobalFieldByKeyAndLanguage ( string $key, integer $languageId ) : DvsGlobalField
$key string
$languageId integer
Résultat DvsGlobalField