RolePreset
FinalYes
Table of Contents
Constants
Methods
- getBasePermissionSetForEntity() : array<string|int, mixed>
- Permissions that must be set for new ($entityTypeId + $categoryId) by default
- getDefaultPermissionSetForEntity() : array<string|int, mixed>
- Typical default permissions for ($entityTypeId + $categoryId)
- getDefaultPermissionSetForEntityByCode() : array<string|int, mixed>
- GetDefaultRolesPreset() : array<string|int, mixed>
- getDeputyPermissionSetForEntity() : array<string|int, mixed>
- Deputy permissions that can be set for ($entityTypeId + $categoryId)
- getHeadPermissionSetForEntity() : array<string|int, mixed>
- Head permissions that can be set for ($entityTypeId + $categoryId)
- getManagerPermissionSetForEntity() : array<string|int, mixed>
- Manager permissions that can be set for ($entityTypeId + $categoryId)
- getMaxPermissionSetForEntity() : array<string|int, mixed>
- Maximal permissions that can be set for ($entityTypeId + $categoryId)
- getMinPermissionSetForEntity() : array<string|int, mixed>
- Minimal permissions that can be set for ($entityTypeId + $categoryId)
- getObserverPermissionSetForEntity() : array<string|int, mixed>
- Observer permissions that can be set for ($entityTypeId + $categoryId)
- getSelfPermissionSetForEntity() : array<string|int, mixed>
- getSpecialSettingsValue() : Closure
- Sets the Transition permission settings to ANY for smart process and deal
Constants
ADMIN
public
mixed
ADMIN
= 'ADMIN'
DEPUTY
public
mixed
DEPUTY
= 'DEPUTY'
HEAD
public
mixed
HEAD
= 'HEAD'
MANAGER
public
mixed
MANAGER
= 'MANAGER'
OBSERVER
public
mixed
OBSERVER
= 'OBSERVER'
Methods
getBasePermissionSetForEntity()
Permissions that must be set for new ($entityTypeId + $categoryId) by default
public
static getBasePermissionSetForEntity(CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>getDefaultPermissionSetForEntity()
Typical default permissions for ($entityTypeId + $categoryId)
public
static getDefaultPermissionSetForEntity(CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>getDefaultPermissionSetForEntityByCode()
public
static getDefaultPermissionSetForEntityByCode(string|null $code, CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $code : string|null
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>GetDefaultRolesPreset()
public
static GetDefaultRolesPreset() : array<string|int, mixed>
Return values
array<string|int, mixed>getDeputyPermissionSetForEntity()
Deputy permissions that can be set for ($entityTypeId + $categoryId)
public
static getDeputyPermissionSetForEntity(CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>getHeadPermissionSetForEntity()
Head permissions that can be set for ($entityTypeId + $categoryId)
public
static getHeadPermissionSetForEntity(CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>getManagerPermissionSetForEntity()
Manager permissions that can be set for ($entityTypeId + $categoryId)
public
static getManagerPermissionSetForEntity(CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>getMaxPermissionSetForEntity()
Maximal permissions that can be set for ($entityTypeId + $categoryId)
public
static getMaxPermissionSetForEntity(CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>getMinPermissionSetForEntity()
Minimal permissions that can be set for ($entityTypeId + $categoryId)
public
static getMinPermissionSetForEntity(CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>getObserverPermissionSetForEntity()
Observer permissions that can be set for ($entityTypeId + $categoryId)
public
static getObserverPermissionSetForEntity(CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>getSelfPermissionSetForEntity()
public
static getSelfPermissionSetForEntity(CategoryIdentifier $categoryIdentifier) : array<string|int, mixed>
Parameters
- $categoryIdentifier : CategoryIdentifier
Return values
array<string|int, mixed>getSpecialSettingsValue()
Sets the Transition permission settings to ANY for smart process and deal
public
static getSpecialSettingsValue(CategoryIdentifier $categoryIdentifier) : Closure
Parameters
- $categoryIdentifier : CategoryIdentifier