Copied!

Version

Version.php : 25
Extends ValueObject
Implements Target

Version Limitation target. Indicates an intent to create new Version.

Properties

public $allContentTypeIdsList read-only

Version.php
public array<string|int, int> $allContentTypeIdsList

public $allLanguageCodesList read-only

Version.php
public array<string|int, string> $allLanguageCodesList

public $forPublishLanguageCodesList read-only

Version.php
public array<string|int, string> $forPublishLanguageCodesList

public $forUpdateInitialLanguageCode read-only

Version.php
public string $forUpdateInitialLanguageCode

public $forUpdateLanguageCodesList read-only

Version.php
public array<string|int, string> $forUpdateLanguageCodesList

public $newStatus read-only

Version.php
public int $newStatus

public $updatedFields read-only

Version.php
public array<string|int, Field$updatedFields

protected $allContentTypeIdsList

Version.php : 39

List of content types. At least one must match Limitation values.

protected array<string|int, int> $allContentTypeIdsList = []

protected $allLanguageCodesList

Version.php : 32

List of language codes of translations. At least one must match Limitation values.

protected array<string|int, string> $allLanguageCodesList = []

protected $forPublishLanguageCodesList

Version.php : 60

List of language codes of translations to publish. All must match Limitation values.

protected array<string|int, string> $forPublishLanguageCodesList = []

protected $forUpdateInitialLanguageCode

Version.php : 46

Language code of a translation used when updated, can be null for e.g. multiple translations changed.

protected string|null $forUpdateInitialLanguageCode

protected $forUpdateLanguageCodesList

Version.php : 53

List of language codes of translations to update. All must match Limitation values.

protected array<string|int, string> $forUpdateLanguageCodesList = []

protected $newStatus

Version.php : 71

One of the following: STATUS_DRAFT, STATUS_PUBLISHED, STATUS_ARCHIVED.

protected int|null $newStatus
Tags
See
VersionInfo::STATUS_DRAFT
See
VersionInfo::STATUS_PUBLISHED
See
VersionInfo::STATUS_ARCHIVED

protected $updatedFields

Version.php : 74
protected array<string|int, Field$updatedFields = []

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

publicdeleteTranslations()

Version.php : 86
public deleteTranslations(array<string|int, string> $translationsToDelete) : self

Parameters

Name Type Default value Description
$translationsToDelete array<string|int, string> -

List of language codes of translations to delete

Return values

self

publicgetTranslationsToDelete()

Version.php : 96
public getTranslationsToDelete() : array<string|int, string>

Return values

array<string|int, string>

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>