Copied!

ContentMetadataUpdateStruct

ContentMetadataUpdateStruct.php : 17
Extends ValueObject

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

public $alwaysAvailable

ContentMetadataUpdateStruct.php : 52

If set this value changes the always available flag.

public bool|null $alwaysAvailable

public $mainLanguageCode

ContentMetadataUpdateStruct.php : 45

If set the main language of the content object is changed.

public string|null $mainLanguageCode

public $mainLocationId

ContentMetadataUpdateStruct.php : 71

If set main location is changed to this value.

public mixed|null $mainLocationId

If the content object has multiple locations, $mainLocationId will point to the main one.

public $modificationDate

ContentMetadataUpdateStruct.php : 38

If set this value overrides the modification date. (Used for staging scenarios).

public DateTime|null $modificationDate

public $name

ContentMetadataUpdateStruct.php : 78

If set, will change the content's "always-available" name.

public string $name

public $ownerId

ContentMetadataUpdateStruct.php : 24

If set this value changes the owner id of the content object.

public mixed|null $ownerId

public $publishedDate

ContentMetadataUpdateStruct.php : 31

If set this value overrides the publication date of the content. (Used in staging scenarios).

public DateTime|null $publishedDate

public $remoteId

ContentMetadataUpdateStruct.php : 61

If set this value changes the remoteId.

public string|null $remoteId

Needs to be a unique Content->remoteId string value.

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

public __construct([array<string|int, mixed> $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> [] -

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>

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>