CollectionsManager
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
at line 40
CollectionInstance
createNewInstance(array $input)
Create a new collection instance
at line 65
[type]
createNewInstanceField($instance, $fieldInput)
[createNewInstanceField description]
at line 87
CollectionInstance
updateInstanceSort($id, $sort)
Updates the instance with input data
at line 102
CollectionInstance
updateInstanceName($id, $name)
Update the collection instance name
at line 117
bool
removeInstance(integer $id)
Remove instance from database