DbUserGroupMemberRepository
class DbUserGroupMemberRepository implements UserGroupMemberRepositoryInterface (View source)
Methods
array
findByGroupId(int $groupId)
Find all members of a group
array
findByUserId(int $userId)
Find all groups a user belongs to
add(int $groupId, int $userId)
Add a user to a group
bool
remove(int $groupId, int $userId)
Remove a user from a group
bool
exists(int $groupId, int $userId)
Check if a user is a member of a group
Details
__construct(PDO $db)
No description
array
findByGroupId(int $groupId)
Find all members of a group
array
findByUserId(int $userId)
Find all groups a user belongs to
UserGroupMember
add(int $groupId, int $userId)
Add a user to a group
bool
remove(int $groupId, int $userId)
Remove a user from a group
bool
exists(int $groupId, int $userId)
Check if a user is a member of a group