PHP Class Services\UserGroupManager

Afficher le fichier Open project: doptor/doptor

Méthodes publiques

Méthode 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 méthode

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

deleteUserGroup() public méthode

Delete an existing user group
public deleteUserGroup ( $id ) : mixed | void
$id
Résultat mixed | void

findAllGroups() public méthode

Find all user groups
public findAllGroups ( ) : mixed
Résultat mixed

findGroupById() public méthode

Find a user group by id
public findGroupById ( $id ) : mixed
$id
Résultat mixed

groupLists() public méthode

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

setPermissions() public méthode

Set permissions on group
public setPermissions ( $input ) : array
$input
Résultat array

updateUserGroup() public méthode

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