‪TYPO3CMS  11.5
TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore Class Reference

Public Member Functions

 __construct (string $userType=self::USER_BACKEND, ?int $userId=null, ?int $originalUserId=null, ?int $tstamp=null, int $workspaceId=0)
 
string addRecord (string $table, int $uid, array $payload, ?CorrelationId $correlationId=null)
 
string modifyRecord (string $table, int $uid, array $payload, ?CorrelationId $correlationId=null)
 
string deleteRecord (string $table, int $uid, ?CorrelationId $correlationId=null)
 
string undeleteRecord (string $table, int $uid, ?CorrelationId $correlationId=null)
 
string moveRecord (string $table, int $uid, array $payload, ?CorrelationId $correlationId=null)
 
 changeStageForRecord (string $table, int $uid, array $payload, ?CorrelationId $correlationId=null)
 

Public Attributes

const ACTION_ADD = 1
 
const ACTION_MODIFY = 2
 
const ACTION_MOVE = 3
 
const ACTION_DELETE = 4
 
const ACTION_UNDELETE = 5
 
const ACTION_STAGECHANGE = 6
 
const USER_BACKEND = 'BE'
 
const USER_FRONTEND = 'FE'
 
const USER_ANONYMOUS = ''
 

Protected Member Functions

 createCorrelationId (string $tableName, int $uid, ?CorrelationId $correlationId)
 
Connection getDatabaseConnection ()
 

Protected Attributes

int null $userId
 
string $userType
 
int null $originalUserId
 
int null $tstamp
 
int $workspaceId
 

Detailed Description

Used to save any history to a record

should only be used by the TYPO3 Core

Definition at line 30 of file RecordHistoryStore.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::__construct ( string  $userType = self::USER_BACKEND,
?int  $userId = null,
?int  $originalUserId = null,
?int  $tstamp = null,
int  $workspaceId = 0 
)

Member Function Documentation

◆ addRecord()

◆ changeStageForRecord()

◆ createCorrelationId()

◆ deleteRecord()

◆ getDatabaseConnection()

◆ modifyRecord()

◆ moveRecord()

◆ undeleteRecord()

Member Data Documentation

◆ $originalUserId

◆ $tstamp

◆ $userId

◆ $userType

◆ $workspaceId

◆ ACTION_ADD

const TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::ACTION_ADD = 1

◆ ACTION_DELETE

◆ ACTION_MODIFY

◆ ACTION_MOVE

const TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::ACTION_MOVE = 3

◆ ACTION_STAGECHANGE

◆ ACTION_UNDELETE

const TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::ACTION_UNDELETE = 5

◆ USER_ANONYMOUS

const TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::USER_ANONYMOUS = ''

Definition at line 41 of file RecordHistoryStore.php.

◆ USER_BACKEND

◆ USER_FRONTEND

const TYPO3\CMS\Core\DataHandling\History\RecordHistoryStore::USER_FRONTEND = 'FE'

Definition at line 40 of file RecordHistoryStore.php.