This class represents a draft of a role.
Constants¶
STATUS_DEFINED ¶
|
|
Status constant for defined (aka "published") role
STATUS_DRAFT ¶
|
|
Status constant for draft (aka "temporary") role
Properties¶
$id
¶
|
|
the internal id of the role
$id
¶
ID of the user role.
|
|
$identifier
¶
|
|
the identifier of the role
$identifier
¶
Readable string identifier of a role in 4.x. this is mapped to the role name.
|
|
$policies
¶
|
|
an array of the policies Policy of the role.
$policies
¶
|
|
$status
¶
The status of the role.
|
|
One of Role::STATUS_DEFINED|Role::STATUS_DRAFT
Methods¶
__construct()
¶
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties as they are not writable anymore after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string|int, mixed> | [] | - |
getPolicies()
¶
Returns the list of policies of this role.
|
|
Return values
array<string|int, Policy>
getStatus()
¶
|
|
Return values
int
getProperties()
¶
Function where list of properties are returned.
|
|
Used by attributes(), override to add dynamic properties
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<string|int, mixed> | [] |
Additional dynamic properties exposed on the object |
Return values
array<string|int, mixed>