PHP Class Devise\Pages\Collections\ResponseHandler

显示文件 Open project: devisephp/cms

Public Methods

Method Description
__construct ( CollectionsManager $CollectionsManager, FieldManager $FieldManager ) Construct a new Response Handler used by dvs_pages
renameInstance ( integer $pageVersionId, integer $collectionInstanceId, array $input ) : void Renames the instance with a better, faster, more improved name.
requestDeleteInstance ( integer $collectionInstanceId ) : void Remove the collection instance from the database
requestStoreInstance ( integer $pageVersionId, integer $collectionSetId, array $input ) : instance Stores the instance with given pageversion and collection set ids
updateCollectionInstanceField ( [type] $fieldId, [type] $input ) : [type] Update the collection instance field
updateSortOrder ( integer $pageVersionId, integer $collectionSetId, array $input ) : array Updates the sort order for a given instance

Method Details

__construct() public method

Construct a new Response Handler used by dvs_pages
public __construct ( CollectionsManager $CollectionsManager, FieldManager $FieldManager )
$CollectionsManager CollectionsManager
$FieldManager Devise\Pages\Fields\FieldManager

renameInstance() public method

Renames the instance with a better, faster, more improved name.
public renameInstance ( integer $pageVersionId, integer $collectionInstanceId, array $input ) : void
$pageVersionId integer
$collectionInstanceId integer
$input array
return void

requestDeleteInstance() public method

Remove the collection instance from the database
public requestDeleteInstance ( integer $collectionInstanceId ) : void
$collectionInstanceId integer
return void

requestStoreInstance() public method

Stores the instance with given pageversion and collection set ids
public requestStoreInstance ( integer $pageVersionId, integer $collectionSetId, array $input ) : instance
$pageVersionId integer
$collectionSetId integer
$input array
return instance

updateCollectionInstanceField() public method

Update the collection instance field
public updateCollectionInstanceField ( [type] $fieldId, [type] $input ) : [type]
$fieldId [type]
$input [type]
return [type]

updateSortOrder() public method

Updates the sort order for a given instance
public updateSortOrder ( integer $pageVersionId, integer $collectionSetId, array $input ) : array
$pageVersionId integer
$collectionSetId integer
$input array
return array