GroupManager
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
at line 56
array
createRules()
Create validation rules
at line 69
DvsGroup
createGroup(array $input)
Create a new Group
at line 94
array
updateRules(integer $id, array $input)
Update validation rules
at line 108
DvsGroup
updateGroup(integer $id, array $input)
Update a new Group
at line 132
DvsGroup
destroyGroup(integer $id)
Delete a Group