Table of Contents
Constants
-
SETTINGS_ACCESS_CLASS_KEY
= 'access'
-
SETTINGS_ENTITYFORM_SCOPE_KEY
= 'entityFormScope'
Methods
-
__construct()
: mixed
-
canAdd()
: bool
-
canAddByEntityTypeId()
: bool
-
canDelete()
: bool
-
canRead()
: bool
-
canUpdate()
: bool
-
getInstance()
: ScopeAccess
-
isAdmin()
: bool
-
isAdminForEntityTypeId()
: bool
SETTINGS_ACCESS_CLASS_KEY
public
mixed
SETTINGS_ACCESS_CLASS_KEY
= 'access'
public
mixed
SETTINGS_ENTITYFORM_SCOPE_KEY
= 'entityFormScope'
__construct()
public
__construct([string $moduleId = null ][, int $userId = null ]) : mixed
Parameters
-
$moduleId
: string
= null
-
-
$userId
: int
= null
-
canAdd()
public
canAdd() : bool
canAddByEntityTypeId()
public
canAddByEntityTypeId(string $entityTypeId) : bool
Parameters
-
$entityTypeId
: string
-
canDelete()
public
canDelete(array<string|int, mixed>|int $scopeIds) : bool
Parameters
-
$scopeIds
: array<string|int, mixed>|int
-
canRead()
public
canRead(int $scopeId) : bool
Parameters
-
$scopeId
: int
-
canUpdate()
public
canUpdate(int $scopeId) : bool
Parameters
-
$scopeId
: int
-
getInstance()
public
static getInstance(string $moduleId[, int $userId = null ]) : ScopeAccess
Parameters
-
$moduleId
: string
-
-
$userId
: int
= null
-
isAdmin()
public
isAdmin() : bool
isAdminForEntityTypeId()
public
isAdminForEntityTypeId(string $entityTypeId) : bool
Parameters
-
$entityTypeId
: string
-