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

Public Member Functions

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

Protected Member Functions

 init (ServerRequestInterface $request)
 
 initDatabaseRecord ()
 
 initFileOrFolderRecord ()
 
 main (ServerRequestInterface $request)
 
array getPageTitle ()
 
array getPreview ()
 
array getPropertiesForTable ()
 
array getFieldList (string $table, int $uid)
 
array getExtraFields ()
 
array getReferences (ServerRequestInterface $request)
 
string getLabelForTableColumn ($tableName, $fieldName)
 
array getRecordActions ($table, $uid, ServerRequestInterface $request)
 
array makeRef ($table, $ref, ServerRequestInterface $request)
 
array makeRefFrom ($table, $ref, ServerRequestInterface $request)
 
array transformFileReferenceToRecordReference (array $referenceRecord)
 
bool canAccessPage (string $tableName, array $record)
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

string $table
 
int $uid
 
string $permsClause
 
bool $access = false
 
string $type = ''
 
ModuleTemplate $moduleTemplate
 
array $pageInfo
 
array $row
 
File $fileObject = null
 
Folder $folderObject = null
 
IconFactory $iconFactory
 
UriBuilder $uriBuilder
 
ModuleTemplateFactory $moduleTemplateFactory
 

Detailed Description

Script Class for showing information about an item.

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

Definition at line 53 of file ElementInformationController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ canAccessPage()

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

◆ getBackendUser()

◆ getExtraFields()

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

◆ getFieldList()

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

◆ getLabelForTableColumn()

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

◆ getLanguageService()

◆ getPageTitle()

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

◆ getPreview()

array TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::getPreview ( )
protected

◆ getPropertiesForTable()

◆ getRecordActions()

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

◆ getReferences()

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

Get references section (references from and references to current record)

Parameters
ServerRequestInterface$request
Returns
‪array

Definition at line 543 of file ElementInformationController.php.

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

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

◆ init()

◆ initDatabaseRecord()

◆ initFileOrFolderRecord()

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

◆ main()

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

◆ mainAction()

ResponseInterface TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::mainAction ( ServerRequestInterface  $request)

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$request‪the current request
Returns
‪ResponseInterface the response with the content

Definition at line 124 of file ElementInformationController.php.

References TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\init(), and TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController\main().

◆ makeRef()

◆ makeRefFrom()

◆ transformFileReferenceToRecordReference()

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

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

Parameters
array$referenceRecord
Returns
‪array

Definition at line 815 of file ElementInformationController.php.

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

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

Member Data Documentation

◆ $access

bool TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::$access = false
protected

Definition at line 73 of file ElementInformationController.php.

◆ $fileObject

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

◆ $folderObject

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

◆ $iconFactory

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

◆ $moduleTemplate

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

Definition at line 85 of file ElementInformationController.php.

◆ $moduleTemplateFactory

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

◆ $pageInfo

array TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::$pageInfo
protected

For type "db": Set to page record of the parent page of the item set (if type="db")

Definition at line 92 of file ElementInformationController.php.

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

◆ $permsClause

string TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController::$permsClause
protected

Definition at line 69 of file ElementInformationController.php.

◆ $row

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

◆ $table

◆ $type

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

Which type of element:

  • ‪"file"
  • ‪"db"

Definition at line 81 of file ElementInformationController.php.

◆ $uid

◆ $uriBuilder

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