PHP 클래스 Devise\Pages\Fields\FieldsRepository

파일 보기 프로젝트 열기: devisephp/cms 1 사용 예제들

공개 메소드들

메소드 설명
__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)

메소드 상세

__construct() 공개 메소드

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

findContentRequestedFieldsList() 공개 메소드

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
리턴 Field

findFieldByGlobalKeyAndLanguage() 공개 메소드

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

findFieldById() 공개 메소드

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

findFieldByIdAndScope() 공개 메소드

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

findFieldByKeyAndPageVersion() 공개 메소드

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

findPristinePageFields() 공개 메소드

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

findTrashedFieldByGlobalKeyAndLanguage() 공개 메소드

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

findTrashedFieldByIdAndScope() 공개 메소드

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
리턴 DvsField || DvsGlobalField

findTrashedFieldByKeyAndPageVersion() 공개 메소드

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

findTrashedGlobalFieldByKeyAndLanguage() 공개 메소드

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