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

Public Member Functions

 __construct ()
 
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
 
TYPO3 CMS Core Resource File null $fileObject
 
Folder $folderObject
 
IconFactory $iconFactory
 

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 51 of file ElementInformationController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

Definition at line 113 of file ElementInformationController.php.

Member Function Documentation

◆ canAccessPage()

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

◆ getBackendUser()

◆ getExtraFields()

◆ 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 539 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 125 of file ElementInformationController.php.

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

◆ makeRef()

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

◆ 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 817 of file ElementInformationController.php.

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 71 of file ElementInformationController.php.

◆ $fileObject

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

◆ $folderObject

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

◆ $iconFactory

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

Definition at line 108 of file ElementInformationController.php.

◆ $moduleTemplate

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

Definition at line 83 of file ElementInformationController.php.

◆ $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 90 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 67 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 79 of file ElementInformationController.php.

◆ $uid