VersionToLiveIdMap

class \TYPO3\CMS\Core\DataHandling\Localization\VersionToLiveIdMap

Version to live id map.

This is on a per-workspace and per-table setup, so it is recommended to use a runtime cache to hold these instances.

Table of Contents

Properties

$map  : int[]
$tableName  : string
$workspaceId  : int

Methods

__construct()  : mixed
getLiveId()  : string|int
getLiveIds()  : int[]
getVersionId()  : int
update()  : self

Properties

Methods

__construct()

public __construct(string $tableName, int $workspaceId) : mixed

Parameters

$tableName : string
$workspaceId : int

getLiveId()

public getLiveId(int $versionId) : string|int

Parameters

$versionId : int

Return values

string|int

getLiveIds()

public getLiveIds(int[] $versionIds) : int[]

Parameters

$versionIds : int[]

Return values

int[]

getVersionId()

public getVersionId(int $liveId) : int

Parameters

$liveId : int

Return values

int

update()

public update(int[] $ids) : self

Parameters

$ids : int[]

Return values

self
On this page