Class

eZ\Publish\SPI\Persistence\Content\VersionInfo

class VersionInfo extends ValueObject

This class holds version information data.

Constants

STATUS_DRAFT

Version status constants.

STATUS_PUBLISHED

STATUS_PENDING

STATUS_ARCHIVED

STATUS_REJECTED

STATUS_INTERNAL_DRAFT

STATUS_REPEAT

STATUS_QUEUED

Properties

mixed $id Version ID.
int $versionNo Version number.
ContentInfo $contentInfo ContentInfo of the content this VersionInfo belongs to.
$names Returns the names computed from the name schema in the available languages.
int $creationDate Creation date of this version, as a UNIX timestamp.
int $modificationDate Last modified date of this version, as a UNIX timestamp.
int $creatorId Creator user ID.
int $status One of VersionInfo::STATUSDRAFT, VersionInfo::STATUSPUBLISHED, VersionInfo::STATUS_ARCHIVED.
string $initialLanguageCode In 4.x this is the language code which is used for labeling a translation.
string[] $languageCodes List of languages in this version.