This class holds version information data.
It also contains the corresponding Content to which the version belongs to.
Constants¶
STATUS_ARCHIVED ¶
|
|
STATUS_DRAFT ¶
|
|
STATUS_PUBLISHED ¶
|
|
Properties¶
$contentInfo¶
|
|
calls getContentInfo()
$creationDate¶
|
|
the creation date of this version
$creatorId¶
|
|
the user id of the user which created this version
$id¶
|
|
the internal id of the version
$initialLanguageCode¶
|
|
the language code of the version. This value is used to flag a version as a translation to specific language
$languageCodes¶
|
|
a collection of all languages which exist in this version.
$modificationDate¶
|
|
the last modified date of this version
$status¶
|
|
the status of this version. One of VersionInfo::STATUS_DRAFT, VersionInfo::STATUS_PUBLISHED, VersionInfo::STATUS_ARCHIVED
$versionNo¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use VersionInfo::getVersionNo() instead.
$creationDate¶
|
|
$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¶
the last modified date of this version.
|
|
$status¶
One of VersionInfo::STATUS_DRAFT, VersionInfo::STATUS_PUBLISHED, VersionInfo::STATUS_ARCHIVED.
|
|
Constant.
$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> | [] | - |
getContentInfo() ¶
Content of the content this version belongs to.
|
|
Return values
getCreator() ¶
|
|
Return values
getInitialLanguage() ¶
|
|
Return values
getLanguageCodes() ¶
|
|
Return values
array<string|int, string>
getLanguages() ¶
|
|
Return values
array<string|int, Language>
getVersionNo() ¶
|
|
Return values
int
isArchived() ¶
Returns true if version is archived.
|
|
Return values
bool
isDraft() ¶
Returns true if version is a draft.
|
|
Return values
bool
isPublished() ¶
Returns true if version is published.
|
|
Return values
bool
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>