VersionToLiveIdMap
class \
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.
Internal
Table of Contents
Properties
- $map : int[]
- $tableName : string
- $workspaceId : int
Methods
- __construct() : mixed
- getLiveId() : string|int
- getLiveIds() : int[]
- getVersionId() : int
- update() : self
Properties
$map
protected
int[]
$map
= []
$tableName
protected
string
$tableName
$workspaceId
protected
int
$workspaceId
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|intgetLiveIds()
public
getLiveIds(int[] $versionIds) : int[]
Parameters
- $versionIds : int[]
Return values
int[]getVersionId()
public
getVersionId(int $liveId) : int
Parameters
- $liveId : int
Return values
intupdate()
public
update(int[] $ids) : self
Parameters
- $ids : int[]