This class holds version information data.
Constants¶
STATUS_ARCHIVED ¶
|
|
STATUS_DRAFT ¶
Version status constants.
|
|
STATUS_INTERNAL_DRAFT ¶
|
|
STATUS_PENDING ¶
|
|
STATUS_PUBLISHED ¶
|
|
STATUS_QUEUED ¶
|
|
STATUS_REJECTED ¶
|
|
STATUS_REPEAT ¶
|
|
Properties¶
$contentInfo¶
ContentInfo of the content this VersionInfo belongs to.
|
|
$creationDate¶
Creation date of this version, as a UNIX timestamp.
|
|
$creatorId¶
Creator user ID.
|
|
Creator of the version, in the search API this is referred to as the modifier of the published content.
$id¶
Version ID.
|
|
$initialLanguageCode¶
In 4.x this is the language code which is used for labeling a translation.
|
|
$languageCodes¶
List of languages in this version.
|
|
Reflects which languages fields exists in for this version.
$modificationDate¶
Last modified date of this version, as a UNIX timestamp.
|
|
$names¶
Returns the names computed from the name schema in the available languages.
|
|
Eg. array( 'eng-GB' => "New Article" ).
$status¶
One of VersionInfo::STATUS_DRAFT, VersionInfo::STATUS_PUBLISHED, VersionInfo::STATUS_ARCHIVED.
|
|
$versionNo¶
Version number.
|
|
In contrast to VersionInfo::$id, this is the version number, which only increments in scope of a single Content object.
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>