This class holds version information data.
Constants¶
                 STATUS_ARCHIVED        ¶
STATUS_ARCHIVED        ¶
    
        |  |  | 
                 STATUS_DRAFT        ¶
STATUS_DRAFT        ¶
    
        Version status constants.
|  |  | 
                 STATUS_INTERNAL_DRAFT        ¶
STATUS_INTERNAL_DRAFT        ¶
    
        |  |  | 
                 STATUS_PENDING        ¶
STATUS_PENDING        ¶
    
        |  |  | 
                 STATUS_PUBLISHED        ¶
STATUS_PUBLISHED        ¶
    
        |  |  | 
                 STATUS_QUEUED        ¶
STATUS_QUEUED        ¶
    
        |  |  | 
                 STATUS_REJECTED        ¶
STATUS_REJECTED        ¶
    
        |  |  | 
                 STATUS_REPEAT        ¶
STATUS_REPEAT        ¶
    
        |  |  | 
Properties¶
                 $contentInfo
            ¶
        $contentInfo
            ¶
    
        ContentInfo of the content this VersionInfo belongs to.
|  |  | 
                 $creationDate
            ¶
        $creationDate
            ¶
    
        Creation date of this version, as a UNIX timestamp.
|  |  | 
                 $creatorId
            ¶
        $creatorId
            ¶
    
        Creator user ID.
|  |  | 
Creator of the version, in the search API this is referred to as the modifier of the published content.
                 $id
            ¶
        $id
            ¶
    
        Version ID.
|  |  | 
                 $initialLanguageCode
            ¶
        $initialLanguageCode
            ¶
    
        In 4.x this is the language code which is used for labeling a translation.
|  |  | 
                 $languageCodes
            ¶
        $languageCodes
            ¶
    
        List of languages in this version.
|  |  | 
Reflects which languages fields exists in for this version.
                 $modificationDate
            ¶
        $modificationDate
            ¶
    
        Last modified date of this version, as a UNIX timestamp.
|  |  | 
                 $names
            ¶
        $names
            ¶
    
        Returns the names computed from the name schema in the available languages.
|  |  | 
Eg. array( 'eng-GB' => "New Article" ).
                 $status
            ¶
        $status
            ¶
    
        One of VersionInfo::STATUS_DRAFT, VersionInfo::STATUS_PUBLISHED, VersionInfo::STATUS_ARCHIVED.
|  |  | 
                 $versionNo
            ¶
        $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()
            ¶
    
        Construct object optionally with a set of properties.
|  |  | 
Readonly properties values must be set using $properties as they aren't writable anymore
after object has been created.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $properties | array<string, mixed> | [] | - | 
                 getProperties()
            ¶
getProperties()
            ¶
    
        Returns list of available properties' names.
|  |  | 
Override to add dynamic properties.
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $dynamicProperties | array<int, string> | [] | Additional dynamic properties exposed on the object | 
Return values
array<int, string>