class GroupManager

Class GroupManager manages the creating, updating, and removing of groups.

Properties

array $errors Errors are kept in an array and can be used later if validation fails and we want to know why
$messages Validation messages

Methods

__construct(DvsGroup $Group, Framework $Framework)

Construct a new Group manager

array
createRules()

Create validation rules

DvsGroup
createGroup(array $input)

Create a new Group

array
updateRules(integer $id, array $input)

Update validation rules

DvsGroup
updateGroup(integer $id, array $input)

Update a new Group

DvsGroup
destroyGroup(integer $id)

Delete a Group

Details

at line 45
__construct(DvsGroup $Group, Framework $Framework)

Construct a new Group manager

Parameters

DvsGroup $Group
Framework $Framework

at line 56
array createRules()

Create validation rules

Return Value

array

at line 69
DvsGroup createGroup(array $input)

Create a new Group

Parameters

array $input

Return Value

DvsGroup $Group

at line 94
array updateRules(integer $id, array $input)

Update validation rules

Parameters

integer $id
array $input

Return Value

array

at line 108
DvsGroup updateGroup(integer $id, array $input)

Update a new Group

Parameters

integer $id
array $input

Return Value

DvsGroup $Group

at line 132
DvsGroup destroyGroup(integer $id)

Delete a Group

Parameters

integer $id

Return Value

DvsGroup $Group