RightsManager
Table of Contents
Constants
- ACCESS_EDIT = 'access_edit'
- ACCESS_FULL = 'access_full'
- ACCESS_READ = 'access_read'
Methods
- __construct() : mixed
- canDelete() : bool
- Checks the right to delete.
- canEdit() : bool
- Checks the right to edit.
- canRead() : bool
- Checks the right to read.
- canShare() : bool
- Checks the right to share.
- getGroupsAndDepartments() : array<string|int, mixed>
- Returns an array of user groups and departments.
Constants
ACCESS_EDIT
public
mixed
ACCESS_EDIT
= 'access_edit'
ACCESS_FULL
public
mixed
ACCESS_FULL
= 'access_full'
ACCESS_READ
public
mixed
ACCESS_READ
= 'access_read'
Methods
__construct()
public
__construct(mixed $userId) : mixed
Parameters
- $userId : mixed
canDelete()
Checks the right to delete.
public
canDelete(int $reportId) : bool
Parameters
- $reportId : int
-
Id report.
Return values
boolcanEdit()
Checks the right to edit.
public
canEdit(int $reportId) : bool
Parameters
- $reportId : int
-
Id report.
Return values
boolcanRead()
Checks the right to read.
public
canRead(int $reportId) : bool
Parameters
- $reportId : int
-
Id report.
Return values
boolcanShare()
Checks the right to share.
public
canShare(int $reportId) : bool
Parameters
- $reportId : int
-
Id report.
Return values
boolgetGroupsAndDepartments()
Returns an array of user groups and departments.
public
getGroupsAndDepartments() : array<string|int, mixed>