PHP Class Devise\Pages\Fields\FieldsRepository

Exibir arquivo Open project: devisephp/cms Class Usage Examples

Public Methods

Method 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 method

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

findContentRequestedFieldsList() public method

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
return Field

findFieldByGlobalKeyAndLanguage() public method

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

findFieldById() public method

Find the field by id
public findFieldById ( integer $id ) : DvsField
$id integer
return DvsField

findFieldByIdAndScope() public method

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

findFieldByKeyAndPageVersion() public method

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

findPristinePageFields() public method

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

findTrashedFieldByGlobalKeyAndLanguage() public method

[findFieldByGlobalKeyAndLanguage description]
public findTrashedFieldByGlobalKeyAndLanguage ( [type] $key, [type] $languageId ) : [type]
$key [type]
$languageId [type]
return [type]

findTrashedFieldByIdAndScope() public method

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
return DvsField || DvsGlobalField

findTrashedFieldByKeyAndPageVersion() public method

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

findTrashedGlobalFieldByKeyAndLanguage() public method

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