With this class data can be provided to update version independent fields of the content.
It is used in content update methods. At least one property in this class must be set.
Properties¶
$alwaysAvailable¶
If set this value changes the always available flag.
|
|
$mainLanguageCode¶
If set the main language of the content object is changed.
|
|
$mainLocationId¶
If set main location is changed to this value.
|
|
If the content object has multiple locations, $mainLocationId will point to the main one.
$modificationDate¶
If set this value overrides the modification date. (Used for staging scenarios).
|
|
$name¶
If set, will change the content's "always-available" name.
|
|
$ownerId¶
If set this value changes the owner id of the content object.
|
|
$publishedDate¶
If set this value overrides the publication date of the content. (Used in staging scenarios).
|
|
$remoteId¶
If set this value changes the remoteId.
|
|
Needs to be a unique Content->remoteId string value.
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>