class CollectionsManager

Manage collections in the database by creating, updating and removing them.

Methods

__construct(DvsCollectionInstance $CollectionInstance, DvsField $Field)

Create a new collections manager object

CollectionInstance
createNewInstance(array $input)

Create a new collection instance

[type]
createNewInstanceField($instance, $fieldInput)

[createNewInstanceField description]

CollectionInstance
updateInstanceSort($id, $sort)

Updates the instance with input data

CollectionInstance
updateInstanceName($id, $name)

Update the collection instance name

bool
removeInstance(integer $id)

Remove instance from database

Details

at line 27
__construct(DvsCollectionInstance $CollectionInstance, DvsField $Field)

Create a new collections manager object

Parameters

DvsCollectionInstance $CollectionInstance
DvsField $Field

at line 40
CollectionInstance createNewInstance(array $input)

Create a new collection instance

Parameters

array $input

Return Value

CollectionInstance

at line 65
[type] createNewInstanceField($instance, $fieldInput)

[createNewInstanceField description]

Parameters

$instance
$fieldInput

Return Value

[type] [description]

at line 87
CollectionInstance updateInstanceSort($id, $sort)

Updates the instance with input data

Parameters

$id
$sort

Return Value

CollectionInstance

at line 102
CollectionInstance updateInstanceName($id, $name)

Update the collection instance name

Parameters

$id
$name

Return Value

CollectionInstance

at line 117
bool removeInstance(integer $id)

Remove instance from database

Parameters

integer $id

Return Value

bool