RecordHistoryStore
Used to save any history to a record
should only be used by the TYPO3 Core
Table of Contents
Constants
- ACTION_ADD = 1
- ACTION_DELETE = 4
- ACTION_MODIFY = 2
- ACTION_MOVE = 3
- ACTION_STAGECHANGE = 6
- ACTION_UNDELETE = 5
- USER_ANONYMOUS = ''
- USER_BACKEND = 'BE'
- USER_FRONTEND = 'FE'
Properties
- $originalUserId : int|null
- $tstamp : int|null
- $userId : int|null
- $userType : string
- $workspaceId : int
Methods
- __construct() : mixed
- addRecord() : string
- changeStageForRecord() : string
- deleteRecord() : string
- modifyRecord() : string
- moveRecord() : string
- undeleteRecord() : string
- createCorrelationId() : CorrelationId
- getDatabaseConnection() : Connection
Constants
ACTION_ADD
public
mixed
ACTION_ADD
= 1
ACTION_DELETE
public
mixed
ACTION_DELETE
= 4
ACTION_MODIFY
public
mixed
ACTION_MODIFY
= 2
ACTION_MOVE
public
mixed
ACTION_MOVE
= 3
ACTION_STAGECHANGE
public
mixed
ACTION_STAGECHANGE
= 6
ACTION_UNDELETE
public
mixed
ACTION_UNDELETE
= 5
USER_ANONYMOUS
public
mixed
USER_ANONYMOUS
= ''
USER_BACKEND
public
mixed
USER_BACKEND
= 'BE'
USER_FRONTEND
public
mixed
USER_FRONTEND
= 'FE'
Properties
$originalUserId
protected
int|null
$originalUserId
$tstamp
protected
int|null
$tstamp
$userId
protected
int|null
$userId
$userType
protected
string
$userType
$workspaceId
protected
int
$workspaceId
Methods
__construct()
public
__construct([string $userType = self::USER_BACKEND ][, int|null $userId = null ][, int|null $originalUserId = null ][, int|null $tstamp = null ][, int $workspaceId = 0 ]) : mixed
Parameters
- $userType : string = self::USER_BACKEND
- $userId : int|null = null
- $originalUserId : int|null = null
- $tstamp : int|null = null
- $workspaceId : int = 0
addRecord()
public
addRecord(string $table, int $uid, array<string|int, mixed> $payload[, CorrelationId|null $correlationId = null ]) : string
Parameters
- $table : string
- $uid : int
- $payload : array<string|int, mixed>
- $correlationId : CorrelationId|null = null
Return values
stringchangeStageForRecord()
public
changeStageForRecord(string $table, int $uid, array<string|int, mixed> $payload[, CorrelationId|null $correlationId = null ]) : string
Parameters
- $table : string
- $uid : int
- $payload : array<string|int, mixed>
- $correlationId : CorrelationId|null = null
Return values
stringdeleteRecord()
public
deleteRecord(string $table, int $uid[, CorrelationId|null $correlationId = null ]) : string
Parameters
- $table : string
- $uid : int
- $correlationId : CorrelationId|null = null
Return values
stringmodifyRecord()
public
modifyRecord(string $table, int $uid, array<string|int, mixed> $payload[, CorrelationId|null $correlationId = null ]) : string
Parameters
- $table : string
- $uid : int
- $payload : array<string|int, mixed>
- $correlationId : CorrelationId|null = null
Return values
stringmoveRecord()
public
moveRecord(string $table, int $uid, array<string|int, mixed> $payload[, CorrelationId|null $correlationId = null ]) : string
Parameters
- $table : string
- $uid : int
- $payload : array<string|int, mixed>
- $correlationId : CorrelationId|null = null
Return values
stringundeleteRecord()
public
undeleteRecord(string $table, int $uid[, CorrelationId|null $correlationId = null ]) : string
Parameters
- $table : string
- $uid : int
- $correlationId : CorrelationId|null = null
Return values
stringcreateCorrelationId()
protected
createCorrelationId(string $tableName, int $uid, CorrelationId|null $correlationId) : CorrelationId
Parameters
- $tableName : string
- $uid : int
- $correlationId : CorrelationId|null
Return values
CorrelationIdgetDatabaseConnection()
protected
getDatabaseConnection() : Connection