‪TYPO3CMS  9.5
TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController Class Reference

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 setPagePath ($table, $uid)
 
 getButtons (ServerRequestInterface $request)
 
array prepareDisplaySettings (ServerRequestInterface $request)
 
 displayMultipleDiff (array $diff)
 
 displayHistory (array $historyEntries)
 
array renderDiff ($entry, $table, $rollbackUid=0)
 
string buildUrl ($overrideParameters=[])
 
string generateTitle ($table, $uid)
 
array null getRecord ($table, $uid)
 
StandaloneView initializeView ()
 
TYPO3 CMS Core Localization LanguageService getLanguageService ()
 
TYPO3 CMS Core Authentication BackendUserAuthentication getBackendUser ()
 
bool getEditLockFromElement ($tableName, $elementUid)
 

Protected Attributes

StandaloneView $view
 
RecordHistory $historyObject
 
int $showDiff = 1
 
array $recordCache = array( )
 
ModuleTemplate $moduleTemplate
 
bool $editLock = false
 

Detailed Description

Controller for showing the history module of TYPO3s backend

See also
‪\TYPO3\CMS\Backend\History\RecordHistory

This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 36 of file ElementHistoryController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::__construct ( )

Member Function Documentation

◆ buildUrl()

string TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::buildUrl (   $overrideParameters = [])
protected

◆ displayHistory()

◆ displayMultipleDiff()

TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::displayMultipleDiff ( array  $diff)
protected

◆ generateTitle()

string TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::generateTitle (   $table,
  $uid 
)
protected

◆ getBackendUser()

TYPO3 CMS Core Authentication BackendUserAuthentication TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::getBackendUser ( )
protected

◆ getButtons()

TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::getButtons ( ServerRequestInterface  $request)
protected

◆ getEditLockFromElement()

bool TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::getEditLockFromElement (   $tableName,
  $elementUid 
)
protected

Get the editlock value from page of a history element

Parameters
string$tableName
int$elementUid
Returns
‪bool

Definition at line 519 of file ElementHistoryController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\getBackendUser(), and TYPO3\CMS\Backend\Utility\BackendUtility\getRecord().

Referenced by TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\mainAction().

◆ getLanguageService()

TYPO3 CMS Core Localization LanguageService TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::getLanguageService ( )
protected

◆ getRecord()

array null TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::getRecord (   $table,
  $uid 
)
protected

Gets a database record (cached).

Parameters
string$table
int$uid
Returns
‪array|null

Definition at line 464 of file ElementHistoryController.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getRecord().

Referenced by TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\generateTitle().

◆ initializeView()

◆ mainAction()

◆ prepareDisplaySettings()

array TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::prepareDisplaySettings ( ServerRequestInterface  $request)
protected

◆ renderDiff()

array TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::renderDiff (   $entry,
  $table,
  $rollbackUid = 0 
)
protected

Renders HTML table-rows with the comparison information of an sys_history entry record

Parameters
array$entry‪sys_history entry record.
string$table‪The table name
int$rollbackUid‪If set to UID of record, display rollback links
Returns
‪array array of records

Definition at line 386 of file ElementHistoryController.php.

References $GLOBALS, TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\buildUrl(), TYPO3\CMS\Backend\Utility\BackendUtility\getItemLabel(), TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\getLanguageService(), and TYPO3\CMS\Backend\Utility\BackendUtility\getProcessedValue().

Referenced by TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\displayHistory(), and TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\displayMultipleDiff().

◆ setPagePath()

TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::setPagePath (   $table,
  $uid 
)
protected

Member Data Documentation

◆ $editLock

bool TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$editLock = false
protected

Restrict editing by non-Admins (0-no, 1-yes)

Definition at line 66 of file ElementHistoryController.php.

◆ $historyObject

RecordHistory TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$historyObject
protected

Definition at line 44 of file ElementHistoryController.php.

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$moduleTemplate
protected

ModuleTemplate object

Definition at line 60 of file ElementHistoryController.php.

◆ $recordCache

array TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$recordCache = array( )
protected

Definition at line 54 of file ElementHistoryController.php.

◆ $showDiff

int TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$showDiff = 1
protected

Display diff or not (0-no diff, 1-inline)

Definition at line 50 of file ElementHistoryController.php.

◆ $view

StandaloneView TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$view
protected