This class represents a policy value.
Properties¶
$function
¶
|
|
Name of the module function Or all functions with '*'
$function
¶
Name of the module function Or all functions with '*'.
|
|
Eg: read
$id
¶
|
|
internal id of the policy
$id
¶
ID of the policy.
|
|
$limitations
¶
|
|
an array of \Ibexa\Contracts\Core\Repository\Values\User\Limitation
$module
¶
|
|
Name of module, associated with the Policy
$module
¶
Name of module, associated with the Policy.
|
|
Eg: content
$originalId
¶
|
|
Original policy ID the policy was created from.
$originalId
¶
Original policy ID the policy was created from.
|
|
Used when role status is Role::STATUS_DRAFT.
$roleId
¶
|
|
the role id this policy belongs to
$roleId
¶
the ID of the role this policy belongs to.
|
|
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> | [] | - |
getLimitations()
¶
|
|
Return values
array<string|int, Limitation>
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>