ElementRight implements RightEntity, Errorable uses ErrorableImplementation
Table of Contents
Interfaces
- RightEntity
- Errorable
Constants
- ACCESS_DENIED = "ACCESS_DENIED"
- ADD = "canAdd"
- DELETE = "canDelete"
- EDIT = "canEdit"
- EDIT_RIGHTS = 'canEditRights'
- FULL_EDIT = "canFullEdit"
- READ = "canRead"
Methods
- __construct() : mixed
- canAdd() : bool
- Checks the add access to the element.
- canDelete() : bool
- Checks the delete access to the element.
- canEdit() : bool
- Checks the edit access to the element.
- canEditRights() : mixed
- Checks the edit rights access to the element
- canFullEdit() : bool
- Checks the full edit access to the element.
- canRead() : bool
- Checks the read access to the element.
- setListsPermission() : mixed
- Sets the access label that is needed to verify the rights of the entity.
Constants
ACCESS_DENIED
public
mixed
ACCESS_DENIED
= "ACCESS_DENIED"
ADD
public
mixed
ADD
= "canAdd"
DELETE
public
mixed
DELETE
= "canDelete"
EDIT
public
mixed
EDIT
= "canEdit"
EDIT_RIGHTS
public
mixed
EDIT_RIGHTS
= 'canEditRights'
FULL_EDIT
public
mixed
FULL_EDIT
= "canFullEdit"
READ
public
mixed
READ
= "canRead"
Methods
__construct()
public
__construct(RightParam $rightParam) : mixed
Parameters
- $rightParam : RightParam
canAdd()
Checks the add access to the element.
public
canAdd() : bool
Return values
boolcanDelete()
Checks the delete access to the element.
public
canDelete() : bool
Return values
boolcanEdit()
Checks the edit access to the element.
public
canEdit() : bool
Return values
boolcanEditRights()
Checks the edit rights access to the element
public
canEditRights() : mixed
canFullEdit()
Checks the full edit access to the element.
public
canFullEdit() : bool
Return values
boolcanRead()
Checks the read access to the element.
public
canRead() : bool
Return values
boolsetListsPermission()
Sets the access label that is needed to verify the rights of the entity.
public
setListsPermission(string $listsPermission) : mixed
Parameters
- $listsPermission : string
-
Access label.