Copied!

ShippingAddressUpdateStruct

ShippingAddressUpdateStruct.php : 13
Uses Fields

This class is used for updating the fields of a content object draft.

Properties

public $creatorId

ContentUpdateStruct.php : 39

Creator user ID.

public mixed $creatorId

Creator of the version, in the search API this is referred to as the modifier of the published content.

WARNING: Standard permission rules applies, only the user set here will be able to change the draft after being set as modifier, and only if (s)he has access to edit the draft in the first place.

Optional creator of version, current user will be used if null

public $fields

Fields.php : 16
public array<string|int, Field$fields = []

public $fields

ContentStruct.php
public array<string|int, Field$fields

public $fields

ContentUpdateStruct.php
public array<string|int, Field$fields

public $initialLanguageCode

ContentUpdateStruct.php : 25

The language code of the version. In 4.x this code will be used as the language code of the translation (which is shown in the admin interface).

public string $initialLanguageCode

It is also used as default language for added fields.

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> [] -

publicsetField()

Fields.php : 19
public setField(string $fieldDefIdentifier, mixed $value[, string|null $language = null ]) : void

Parameters

Name Type Default value Description
$fieldDefIdentifier string - -
$value mixed - -
$language string|null null -

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>