eZ\Publish\Core\Persistence\Legacy\Content\Mapper::extractVersionInfoFromRow PHP Method

extractVersionInfoFromRow() private method

This method will return VersionInfo with incomplete data. It is intended to be used only by {@link self::extractContentFromRows} where missing data will be filled in.
private extractVersionInfoFromRow ( array $row, array $names = [] ) : eZ\Publish\SPI\Persistence\Content\VersionInfo
$row array
$names array
return eZ\Publish\SPI\Persistence\Content\VersionInfo
    private function extractVersionInfoFromRow(array $row, array $names = array())
    {
        $versionInfo = new VersionInfo();
        $versionInfo->id = (int) $row['ezcontentobject_version_id'];
        $versionInfo->contentInfo = null;
        $versionInfo->versionNo = (int) $row['ezcontentobject_version_version'];
        $versionInfo->creatorId = (int) $row['ezcontentobject_version_creator_id'];
        $versionInfo->creationDate = (int) $row['ezcontentobject_version_created'];
        $versionInfo->modificationDate = (int) $row['ezcontentobject_version_modified'];
        $versionInfo->initialLanguageCode = $this->languageHandler->load($row['ezcontentobject_version_initial_language_id'])->languageCode;
        $versionInfo->languageIds = $this->extractLanguageIdsFromMask($row['ezcontentobject_version_language_mask']);
        $versionInfo->status = (int) $row['ezcontentobject_version_status'];
        $versionInfo->names = $names;
        return $versionInfo;
    }