ElementInformationController

class \TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController

Script Class for showing information about an item.

Table of Contents

Properties

$access  : bool
$fileObject  : File|null
$folderObject  : Folder|null
$iconFactory  : IconFactory
$moduleTemplate  : ModuleTemplate
$moduleTemplateFactory  : ModuleTemplateFactory
$pageInfo  : array
For type "db": Set to page record of the parent page of the item set (if type="db")
$permsClause  : string
$row  : array
Database records identified by table/uid
$table  : string
Record table name
$type  : string
Which type of element: - "file" - "db"
$uid  : int
Record uid
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
mainAction()  : ResponseInterface
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
canAccessPage()  : bool
getBackendUser()  : BackendUserAuthentication
getExtraFields()  : array
Get the extra fields (uid, timestamps, creator) for the table
getFieldList()  : array
Get the list of fields that should be shown for the given table
getLabelForTableColumn()  : string
Get field name for specified table/column name
getLanguageService()  : LanguageService
getPageTitle()  : array
Get page title with icon, table title and record title
getPreview()  : array
Get preview for current record
getPropertiesForTable()  : array
Get property array for html table
getRecordActions()  : array
Returns the record actions
getReferences()  : array
Get references section (references from and references to current record)
init()  : void
Determines if table/uid point to database record or file and if user has access to view information
initDatabaseRecord()  : void
Init database records (table)
initFileOrFolderRecord()  : void
Init file/folder parameters
main()  : void
Compiles the whole content to be outputted, which is then set as content to the moduleTemplate There is a hook to do a custom rendering of a record.
makeRef()  : array
Make reference display
makeRefFrom()  : array
Make reference display (what this elements points to)
transformFileReferenceToRecordReference()  : array
Convert FAL file reference (sys_file_reference) to reference index (sys_refindex) table format

Properties

$pageInfo

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

protected array $pageInfo

$row

Database records identified by table/uid

protected array $row

$table

Record table name

protected string $table

$type

Which type of element: - "file" - "db"

protected string $type = ''

Methods

mainAction()

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

public mainAction(ServerRequestInterface $request) : ResponseInterface

Parameters

$request : ServerRequestInterface

the current request

Return values

ResponseInterface —

the response with the content

canAccessPage()

protected canAccessPage(string $tableName, array $record) : bool

Parameters

$tableName : string

Name of the table

$record : array

Record to be checked (ensure pid is resolved for workspaces)

Return values

bool

getExtraFields()

Get the extra fields (uid, timestamps, creator) for the table

protected getExtraFields() : array

Return values

array

getFieldList()

Get the list of fields that should be shown for the given table

protected getFieldList(string $table, int $uid) : array

Parameters

$table : string
$uid : int

Return values

array

getLabelForTableColumn()

Get field name for specified table/column name

protected getLabelForTableColumn(string $tableName, string $fieldName) : string

Parameters

$tableName : string

Table name

$fieldName : string

Column name

Return values

string —

label

getPageTitle()

Get page title with icon, table title and record title

protected getPageTitle() : array

Return values

array

getPreview()

Get preview for current record

protected getPreview() : array

Return values

array

getPropertiesForTable()

Get property array for html table

protected getPropertiesForTable() : array

Return values

array

getRecordActions()

Returns the record actions

protected getRecordActions(string $table, int $uid, ServerRequestInterface $request) : array

Parameters

$table : string
$uid : int
$request : ServerRequestInterface

Tags

throws
RouteNotFoundException

Return values

array

getReferences()

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

protected getReferences(ServerRequestInterface $request) : array

Parameters

$request : ServerRequestInterface

Return values

array

init()

Determines if table/uid point to database record or file and if user has access to view information

protected init(ServerRequestInterface $request) : void

Parameters

$request : ServerRequestInterface

initDatabaseRecord()

Init database records (table)

protected initDatabaseRecord() : void

initFileOrFolderRecord()

Init file/folder parameters

protected initFileOrFolderRecord() : void

main()

Compiles the whole content to be outputted, which is then set as content to the moduleTemplate There is a hook to do a custom rendering of a record.

protected main(ServerRequestInterface $request) : void

Parameters

$request : ServerRequestInterface

makeRef()

Make reference display

protected makeRef(string $table, int|File $ref, ServerRequestInterface $request) : array

Parameters

$table : string

Table name

$ref : int|File

Filename or uid

$request : ServerRequestInterface

Tags

throws
RouteNotFoundException

Return values

array

makeRefFrom()

Make reference display (what this elements points to)

protected makeRefFrom(string $table, int $ref, ServerRequestInterface $request) : array

Parameters

$table : string

Table name

$ref : int

Filename or uid

$request : ServerRequestInterface

Return values

array

transformFileReferenceToRecordReference()

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

protected transformFileReferenceToRecordReference(array $referenceRecord) : array

Parameters

$referenceRecord : array

Return values

array
On this page