Table of Contents
Interfaces
- RolePermissionService
Methods
-
__construct()
: mixed
-
deleteRole()
: void
-
getAccessRights()
: array<string|int, mixed>
-
getRoleAccessRights()
: array<string|int, mixed>
-
getRoleList()
: array<string|int, mixed>
-
getUserGroups()
: array<string|int, mixed>
-
saveRole()
: int
-
saveRolePermissions()
: void
__construct()
public
__construct([RoleRelationService|null $roleRelationService = null ][, PermissionRepository|null $permissionRepository = null ][, RoleRepository|null $roleRepository = null ]) : mixed
Parameters
-
$roleRelationService
: RoleRelationService|null
= null
-
-
$permissionRepository
: PermissionRepository|null
= null
-
-
$roleRepository
: RoleRepository|null
= null
-
deleteRole()
public
deleteRole(int $roleId) : void
Parameters
-
$roleId
: int
-
getAccessRights()
public
getAccessRights() : array<string|int, mixed>
Return values
array<string|int, mixed>
getRoleAccessRights()
public
getRoleAccessRights(int $roleId) : array<string|int, mixed>
Parameters
-
$roleId
: int
-
Return values
array<string|int, mixed>
getRoleList()
public
getRoleList() : array<string|int, mixed>
Return values
array<string|int, mixed>
getUserGroups()
public
getUserGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>
saveRole()
public
saveRole(string $name[, int|null $roleId = null ]) : int
Parameters
-
$name
: string
-
-
$roleId
: int|null
= null
-
-
throws
-
SqlQueryException
saveRolePermissions()
public
saveRolePermissions(array<string|int, array{id: int|string, title: string, type: string, accessRights: array{id: string, value: string}[]}> &$permissionSettings) : void
Parameters
-
$permissionSettings
: array<string|int, array{id: int|string, title: string, type: string, accessRights: array{id: string, value: string}[]}>
-
-
throws
-
SqlQueryException