class GroupsRepository

Methods

__construct(DvsGroup $Group, DvsUser $User)

No description

DvsGroup
findById(int $id)

Find group by id

DvsGroup
findByName(string $name)

Find group by name

array
groupList()

List all the groups

Collection
groups()

Paginated list of groups

array
groupListForUser(integer $userId)

Get a list of groups for the given user id

Details

at line 9
__construct(DvsGroup $Group, DvsUser $User)

Parameters

DvsGroup $Group
DvsUser $User

at line 21
DvsGroup findById(int $id)

Find group by id

Parameters

int $id

Return Value

DvsGroup

at line 32
DvsGroup findByName(string $name)

Find group by name

Parameters

string $name

Return Value

DvsGroup

at line 42
array groupList()

List all the groups

Return Value

array

at line 52
Collection groups()

Paginated list of groups

Return Value

Collection

at line 63
array groupListForUser(integer $userId)

Get a list of groups for the given user id

Parameters

integer $userId

Return Value

array