Devise
Class

Devise\Users\Groups\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
public __construct(DvsGroup $Group, Framework $Framework)

Construct a new Group manager

Parameters

DvsGroup $Group
Framework $Framework

at line 56
public array createRules()

Create validation rules

Return Value

array

at line 69
public DvsGroup createGroup(array $input)

Create a new Group

Parameters

array $input

Return Value

DvsGroup $Group

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

Update validation rules

Parameters

integer $id
array $input

Return Value

array

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

Update a new Group

Parameters

integer $id
array $input

Return Value

DvsGroup $Group

at line 132
public DvsGroup destroyGroup(integer $id)

Delete a Group

Parameters

integer $id

Return Value

DvsGroup $Group