Devise
Class

Devise\Pages\Collections\CollectionsManager

class CollectionsManager

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

Methods

__construct(DvsCollectionInstance $CollectionInstance)

Create a new collections manager object

CollectionInstance createNewInstance(array $inputData)

Create a new collection instance

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 21
public __construct(DvsCollectionInstance $CollectionInstance)

Create a new collections manager object

Parameters

DvsCollectionInstance $CollectionInstance

at line 33
public CollectionInstance createNewInstance(array $inputData)

Create a new collection instance

Parameters

array $inputData

Return Value

CollectionInstance

at line 53
public CollectionInstance updateInstanceSort($id, $sort)

Updates the instance with input data

Parameters

$id
$sort

Return Value

CollectionInstance

at line 68
public CollectionInstance updateInstanceName($id, $name)

Update the collection instance name

Parameters

$id
$name

Return Value

CollectionInstance

at line 83
public bool removeInstance(integer $id)

Remove instance from database

Parameters

integer $id

Return Value

bool