RoleManager
Table of Contents
Methods
- deleteRole() : null
- Deletes role and all dependent records.
- setRolePermissions() : mixed
Methods
deleteRole()
Deletes role and all dependent records.
public
static deleteRole(int $roleId) : null
Parameters
- $roleId : int
-
Id of the role
Return values
nullsetRolePermissions()
public
static setRolePermissions(mixed $roleId, array<string|int, mixed> $permissions) : mixed
Parameters
- $roleId : mixed
- $permissions : array<string|int, mixed>