Copied!

VersionInfo

VersionInfo.php : 14
Extends ValueObject

This class holds version information data.

Constants

publicSTATUS_ARCHIVED

VersionInfo.php : 24
public mixed STATUS_ARCHIVED = 3

publicSTATUS_DRAFT

VersionInfo.php : 21

Version status constants.

public int STATUS_DRAFT = 0

publicSTATUS_INTERNAL_DRAFT

VersionInfo.php : 26
public mixed STATUS_INTERNAL_DRAFT = 5

publicSTATUS_PENDING

VersionInfo.php : 23
public mixed STATUS_PENDING = 2

publicSTATUS_PUBLISHED

VersionInfo.php : 22
public mixed STATUS_PUBLISHED = 1

publicSTATUS_QUEUED

VersionInfo.php : 28
public mixed STATUS_QUEUED = 7

publicSTATUS_REJECTED

VersionInfo.php : 25
public mixed STATUS_REJECTED = 4

publicSTATUS_REPEAT

VersionInfo.php : 27
public mixed STATUS_REPEAT = 6

Properties

public $contentInfo

VersionInfo.php : 52

ContentInfo of the content this VersionInfo belongs to.

public ContentInfo $contentInfo

public $creationDate

VersionInfo.php : 67

Creation date of this version, as a UNIX timestamp.

public int $creationDate

public $creatorId

VersionInfo.php : 83

Creator user ID.

public int $creatorId

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

public $id

VersionInfo.php : 35

Version ID.

public mixed $id

public $initialLanguageCode

VersionInfo.php : 97

In 4.x this is the language code which is used for labeling a translation.

public string $initialLanguageCode

public $languageCodes

VersionInfo.php : 106

List of languages in this version.

public array<string|int, string> $languageCodes = []

Reflects which languages fields exists in for this version.

public $modificationDate

VersionInfo.php : 74

Last modified date of this version, as a UNIX timestamp.

public int $modificationDate

public $names

VersionInfo.php : 60

Returns the names computed from the name schema in the available languages.

public mixed $names

Eg. array( 'eng-GB' => "New Article" ).

public $status

VersionInfo.php : 90

One of VersionInfo::STATUS_DRAFT, VersionInfo::STATUS_PUBLISHED, VersionInfo::STATUS_ARCHIVED.

public int $status

public $versionNo

VersionInfo.php : 45

Version number.

public int $versionNo

In contrast to VersionInfo::$id, this is the version number, which only increments in scope of a single Content object.

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>