Devise
Class

Devise\Fields\Repositories\FieldsRepository

class FieldsRepository

Methods

__construct(Field $Field, GlobalField $GlobalField)

queue()

Field findFieldByKeyAndPageVersion($key, $pageVersionId, $collectionInstanceId)

Find existing page field given key and pageId

Field findTrashedFieldByKeyAndPageVersion($key, $pageVersionId)

Find existing page field (only if it has been trashed)

GlobalField findTrashedGlobalFieldByKeyAndLanguage(string $key, integer $languageId)

Find existing global field (only if it has been trashed)

Field findFieldByGlobalKey(string $key)

Finds the global field by key

Field findFieldById(integer $id)

Find the field by id

string findCurrentStage()

Find the current stage

[type] findFieldByIdAndScope([type] $fieldId, [type] $fieldScope)

[findFieldByIdAndScope description]

findTrashedFieldByIdAndScope($fieldId, $fieldScope)

[type] findFieldByGlobalKeyAndLanguage([type] $key, [type] $languageId)

[findFieldByGlobalKeyAndLanguage description]

Details

at line 9
public __construct(Field $Field, GlobalField $GlobalField)

Parameters

Field $Field
GlobalField $GlobalField

at line 15
public queue()

at line 33
public Field findFieldByKeyAndPageVersion($key, $pageVersionId, $collectionInstanceId)

Find existing page field given key and pageId

Parameters

$key
$pageVersionId
$collectionInstanceId

Return Value

Field

at line 49
public Field findTrashedFieldByKeyAndPageVersion($key, $pageVersionId)

Find existing page field (only if it has been trashed)

Parameters

$key
$pageVersionId

Return Value

Field

at line 65
public GlobalField findTrashedGlobalFieldByKeyAndLanguage(string $key, integer $languageId)

Find existing global field (only if it has been trashed)

Parameters

string $key
integer $languageId

Return Value

GlobalField

at line 80
public Field findFieldByGlobalKey(string $key)

Finds the global field by key

Parameters

string $key

Return Value

Field

at line 91
public Field findFieldById(integer $id)

Find the field by id

Parameters

integer $id

Return Value

Field

at line 101
public string findCurrentStage()

Find the current stage

Return Value

string

at line 112
public [type] findFieldByIdAndScope([type] $fieldId, [type] $fieldScope)

[findFieldByIdAndScope description]

Parameters

[type] $fieldId [description]
[type] $fieldScope [description]

Return Value

[type] [description]

at line 117
public findTrashedFieldByIdAndScope($fieldId, $fieldScope)

Parameters

$fieldId
$fieldScope

at line 128
public [type] findFieldByGlobalKeyAndLanguage([type] $key, [type] $languageId)

[findFieldByGlobalKeyAndLanguage description]

Parameters

[type] $key [description]
[type] $languageId [description]

Return Value

[type] [description]