TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ElementHistoryController Class Reference
Inheritance diagram for ElementHistoryController:
AbstractModule

Public Member Functions

 __construct ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 
- Public Member Functions inherited from AbstractModule
 __construct ()
 
 processRequest (ServerRequestInterface $request, ResponseInterface $response)
 

Public Attributes

 $content
 
 $doc
 

Protected Member Functions

 init ()
 
 setPagePath ($table, $uid)
 
 getButtons ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

 $pageInfo
 
- Protected Attributes inherited from AbstractModule
 $moduleTemplate
 
 $request
 

Detailed Description

Script Class for showing the history module of TYPO3s backend

See Also

Definition at line 31 of file ElementHistoryController.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

getBackendUser ( )
protected

Gets the current backend user.

Returns

Definition at line 178 of file ElementHistoryController.php.

References $GLOBALS.

Referenced by ElementHistoryController\setPagePath().

getButtons ( )
protected

Create the panel of buttons for submitting the form or otherwise perform operations.

Returns
array All available buttons as an assoc. array

Definition at line 143 of file ElementHistoryController.php.

References GeneralUtility\_GP(), ButtonBar\BUTTON_POSITION_LEFT, ElementHistoryController\getLanguageService(), GeneralUtility\sanitizeLocalUrl(), and Icon\SIZE_SMALL.

Referenced by ElementHistoryController\main().

getLanguageService ( )
protected

Returns LanguageService

Returns

Definition at line 168 of file ElementHistoryController.php.

References $GLOBALS.

Referenced by ElementHistoryController\__construct(), ElementHistoryController\getButtons(), and ElementHistoryController\main().

init ( )
protected

Initialize the module output

Returns
void

Definition at line 83 of file ElementHistoryController.php.

References GeneralUtility\makeInstance().

Referenced by ElementHistoryController\__construct().

main ( )
mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

Injects the request object for the current request or subrequest As this controller goes only through the main() method, it is rather simple for now

Parameters
ServerRequestInterface$requestthe current request
ResponseInterface$response
Returns
ResponseInterface the response with the content

Definition at line 70 of file ElementHistoryController.php.

References $response, MessageInterface\getBody(), and ElementHistoryController\main().

setPagePath (   $table,
  $uid 
)
protected

Creates the correct path to the current record

Parameters
string$table
int$uid

Definition at line 121 of file ElementHistoryController.php.

References ElementHistoryController\getBackendUser(), BackendUtility\getRecord(), and BackendUtility\readPageAccess().

Referenced by ElementHistoryController\main().

Member Data Documentation

$content

Definition at line 36 of file ElementHistoryController.php.

$doc

Definition at line 43 of file ElementHistoryController.php.

$pageInfo
protected

Definition at line 48 of file ElementHistoryController.php.