‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController Class Reference

Public Member Functions

 __construct (protected readonly IconFactory $iconFactory, protected readonly UriBuilder $uriBuilder, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly ResourceFactory $resourceFactory, private readonly FormDataCompiler $formDataCompiler,)
 
 mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 getPageTitle ()
 
 getPreview (ServerRequestInterface $request)
 
 getPropertiesForTable (ServerRequestInterface $request)
 
 getFieldList (ServerRequestInterface $request, string $table, int $uid)
 
 getExtraFields ()
 
 getReferences (ServerRequestInterface $request, int|string $uid)
 
string getLabelForTableColumn ($tableName, $fieldName)
 
 getRecordActions ($table, $uid, ServerRequestInterface $request)
 
 makeRef ($table, $ref, ServerRequestInterface $request)
 
 makeRefFrom ($table, $ref, ServerRequestInterface $request)
 
 transformFileReferenceToRecordReference (array $referenceRecord)
 
 canAccessPage (string $tableName, array $record)
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

string $type = 'db'
 
array $row = []
 
string $table = null
 
File $fileObject = null
 
Folder $folderObject = null
 

Detailed Description

Modal rendering detail about a record. Reached by "Display information" on click menu and list module.

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

Definition at line 52 of file ElementInformationController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::__construct ( protected readonly IconFactory  $iconFactory,
protected readonly UriBuilder  $uriBuilder,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory,
protected readonly ResourceFactory  $resourceFactory,
private readonly FormDataCompiler  $formDataCompiler 
)

Definition at line 64 of file ElementInformationController.php.

Member Function Documentation

◆ canAccessPage()

TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::canAccessPage ( string  $tableName,
array  $record 
)
protected

◆ getBackendUser()

◆ getExtraFields()

TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::getExtraFields ( )
protected

◆ getFieldList()

TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::getFieldList ( ServerRequestInterface  $request,
string  $table,
int  $uid 
)
protected

◆ getLabelForTableColumn()

string TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::getLabelForTableColumn (   $tableName,
  $fieldName 
)
protected

Get field name for specified table/column name

Parameters
string$tableName‪Table name
string$fieldName‪Column name
Returns
‪string label

Definition at line 461 of file ElementInformationController.php.

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

Referenced by TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\makeRef(), and TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\makeRefFrom().

◆ getLanguageService()

◆ getPageTitle()

TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::getPageTitle ( )
protected

◆ getPreview()

TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::getPreview ( ServerRequestInterface  $request)
protected

◆ getPropertiesForTable()

◆ getRecordActions()

TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::getRecordActions (   $table,
  $uid,
ServerRequestInterface  $request 
)
protected

◆ getReferences()

TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::getReferences ( ServerRequestInterface  $request,
int|string  $uid 
)
protected

◆ mainAction()

◆ makeRef()

◆ makeRefFrom()

◆ transformFileReferenceToRecordReference()

TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::transformFileReferenceToRecordReference ( array  $referenceRecord)
protected

Convert FAL file reference (sys_file_reference) to reference index (sys_refindex) table format

Definition at line 697 of file ElementInformationController.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\makeRef().

Member Data Documentation

◆ $fileObject

File TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::$fileObject = null
protected

◆ $folderObject

Folder TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::$folderObject = null
protected

◆ $row

array TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::$row = []
protected

◆ $table

◆ $type

string TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::$type = 'db'
protected

Type of element: "db", "file" or "folder"

Definition at line 57 of file ElementInformationController.php.