Base SPI Value object.
All properties of SPI\ValueObject must be serializable for cache & NoSQL use.
Properties¶
$function¶
Name of the module function Or all functions with '*'.
|
|
Eg: read
$id¶
ID of the policy.
|
|
$limitations¶
Array of policy limitations, which is just a random hash map.
|
|
The limitation array may look like:
array(
'Subtree' => array(
'/1/2/',
'/1/4/',
),
'Foo' => array( 'Bar' ),
…
)
Where the keys are the limitation identifiers, and the respective values are an array of limitation values
If string, then only the value '' is allowed, meaning all limitations. Can not be a empty array as '' should be used in this case.
$module¶
Name of module, associated with the Policy.
|
|
Eg: content
$originalId¶
Only used when the role's status, current policy belongs to, is Role::STATUS_DRAFT.
|
|
Original policy ID the draft was created from. In other cases, will be null.
$roleId¶
Foreign ID of the role.
|
|
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> | [] | - |
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>