PHP Class Services\UserGroupManager

Show file Open project: doptor/doptor

Public Methods

Method Description
createUserGroup ( array $input = [] ) : mixed Create a new user group
deleteUserGroup ( $id ) : mixed | void Delete an existing user group
findAllGroups ( ) : mixed Find all user groups
findGroupById ( $id ) : mixed Find a user group by id
groupLists ( string $value, key $key = null ) : array Get a list of all user groups
setPermissions ( $input ) : array Set permissions on group
updateUserGroup ( $id, array $input = [] ) : mixed Update an existing user group

Method Details

createUserGroup() public method

Create a new user group
public createUserGroup ( array $input = [] ) : mixed
$input array
return mixed

deleteUserGroup() public method

Delete an existing user group
public deleteUserGroup ( $id ) : mixed | void
$id
return mixed | void

findAllGroups() public method

Find all user groups
public findAllGroups ( ) : mixed
return mixed

findGroupById() public method

Find a user group by id
public findGroupById ( $id ) : mixed
$id
return mixed

groupLists() public method

Get a list of all user groups
public groupLists ( string $value, key $key = null ) : array
$value string Value
$key key Key
return array

setPermissions() public method

Set permissions on group
public setPermissions ( $input ) : array
$input
return array

updateUserGroup() public method

Update an existing user group
public updateUserGroup ( $id, array $input = [] ) : mixed
$id
$input array
return mixed