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

Public Member Functions

 __construct (IconFactory $iconFactory, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory)
 
ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 setPagePath ($table, $uid)
 
 getButtons ()
 
 processSettings (ServerRequestInterface $request)
 
 displayMultipleDiff (array $diff)
 
 displayHistory (array $historyEntries)
 
array renderDiff ($entry, $table, $rollbackUid=0, bool $showRollbackLink=false)
 
string buildUrl ($overrideParameters=[])
 
string generateTitle ($table, $uid)
 
array null getRecord ($table, $uid)
 
StandaloneView initializeView ()
 
 getLanguageService ()
 
 getBackendUser ()
 
bool getEditLockFromElement ($tableName, $elementUid)
 

Protected Attributes

StandaloneView $view
 
RecordHistory $historyObject
 
bool $showDiff = true
 
array $recordCache = array( )
 
ModuleTemplate $moduleTemplate
 
string $returnUrl = ''
 
IconFactory $iconFactory
 
UriBuilder $uriBuilder
 
ModuleTemplateFactory $moduleTemplateFactory
 

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 43 of file ElementHistoryController.php.

Constructor & Destructor Documentation

◆ __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()

◆ getButtons()

◆ 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 487 of file ElementHistoryController.php.

References $GLOBALS, and TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController\getBackendUser().

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

◆ getLanguageService()

◆ 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 443 of file ElementHistoryController.php.

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

◆ initializeView()

◆ mainAction()

◆ processSettings()

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

◆ renderDiff()

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

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

Parameters
array$entry‪sys_history entry record.
string$table‪The table name
int$rollbackUid‪The UID of the record
bool$showRollbackLink‪Whether a rollback link should be shown for each changed field
Returns
‪array array of records

Definition at line 360 of file ElementHistoryController.php.

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

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

◆ $historyObject

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

Definition at line 51 of file ElementHistoryController.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$iconFactory
protected

◆ $moduleTemplate

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

ModuleTemplate object

Definition at line 67 of file ElementHistoryController.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$moduleTemplateFactory
protected

◆ $recordCache

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

Definition at line 61 of file ElementHistoryController.php.

◆ $returnUrl

string TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$returnUrl = ''
protected

◆ $showDiff

bool TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$showDiff = true
protected

Display inline differences or not

Definition at line 57 of file ElementHistoryController.php.

◆ $uriBuilder

UriBuilder TYPO3\CMS\Backend\Controller\ContentElement\ElementHistoryController::$uriBuilder
protected

◆ $view

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