Base SPI Value object.
All properties of SPI\ValueObject must be serializable for cache & NoSQL use.
Properties¶
$alwaysAvailable¶
|
|
Always available flag
$fields¶
Contains *all* fields of the object to be created.
|
|
This attribute should contain all fields (in all language) of the object to be created. If a field is not translatable, it may only occur once. The storage layer will automatically take care that such fields are assigned to each language version.
$initialLanguageId¶
Language id the content was initially created in.
|
|
$isHidden¶
Is hidden flag.
|
|
$locations¶
ContentId, contentVersion and mainLocationId are allowed to be left empty when used on with this struct as these values are created by the create method.
|
|
$mainLanguageId¶
Optional, main language of the content, if not set $initialLanguageId will be used instead.
|
|
Typical use is copy operations where content main language and version initial language might differ.
$modified¶
Modification date.
|
|
$name¶
|
|
Eg. array( 'eng-GB' => "New Article" )
$ownerId¶
|
|
$remoteId¶
|
|
Remote identifier used as a custom identifier for the object
$sectionId¶
|
|
$typeId¶
|
|
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>