Table of Contents
Constants
-
SETTINGS_ACCESS_CLASS_KEY
= 'access'
-
SETTINGS_USER_FIELD_KEY
= 'userField'
Methods
-
__construct()
: mixed
-
canAdd()
: bool
-
canDelete()
: bool
-
canRead()
: bool
-
canReadWithFilter()
: bool
-
canUpdate()
: bool
-
getInstance()
: UserFieldAccess
-
getRestrictedTypes()
: array<string|int, mixed>
-
getUserFieldDetailUrl()
: Uri|null
-
getUserId()
: int
-
prepareFilter()
: array<string|int, mixed>|null
-
setUserId()
: UserFieldAccess
SETTINGS_ACCESS_CLASS_KEY
public
mixed
SETTINGS_ACCESS_CLASS_KEY
= 'access'
SETTINGS_USER_FIELD_KEY
public
mixed
SETTINGS_USER_FIELD_KEY
= 'userField'
__construct()
public
__construct([int $userId = null ]) : mixed
Parameters
-
$userId
: int
= null
-
canAdd()
public
canAdd(array<string|int, mixed> $field) : bool
Parameters
-
$field
: array<string|int, mixed>
-
canDelete()
public
canDelete(int $id) : bool
Parameters
-
$id
: int
-
canRead()
public
canRead(int $id) : bool
Parameters
-
$id
: int
-
canReadWithFilter()
public
canReadWithFilter(array<string|int, mixed> $filter) : bool
Parameters
-
$filter
: array<string|int, mixed>
-
canUpdate()
public
canUpdate(int $id) : bool
Parameters
-
$id
: int
-
getInstance()
public
static getInstance(string $moduleId[, int $userId = null ]) : UserFieldAccess
Parameters
-
$moduleId
: string
-
-
$userId
: int
= null
-
getRestrictedTypes()
public
getRestrictedTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>
getUserFieldDetailUrl()
public
getUserFieldDetailUrl(array<string|int, mixed> $field) : Uri|null
Parameters
-
$field
: array<string|int, mixed>
-
getUserId()
public
getUserId() : int
prepareFilter()
public
prepareFilter([array<string|int, mixed> $filter = [] ]) : array<string|int, mixed>|null
Parameters
-
$filter
: array<string|int, mixed>
= []
-
Return values
array<string|int, mixed>|null
setUserId()
public
setUserId(int $userId) : UserFieldAccess
Parameters
-
$userId
: int
-