ElementInformationController

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

Internal

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

Attributes
#[AsController]

Table of Contents

Properties

$fileObject  : File|null
$folderObject  : Folder|null
$iconFactory  : IconFactory
$moduleTemplateFactory  : ModuleTemplateFactory
$resourceFactory  : ResourceFactory
$row  : array<string|int, mixed>
$table  : string|null
$type  : string
Type of element: "db", "file" or "folder"
$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<string|int, mixed>
Get the extra fields (uid, timestamps, creator) for the table
getFieldList()  : array<string|int, mixed>
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<string|int, mixed>
Get page title with icon, table title and record title
getPreview()  : array<string|int, mixed>
Get preview for current record
getPropertiesForTable()  : array<string|int, mixed>
Get property array for html table
getRecordActions()  : array<string|int, mixed>
Returns the record actions
getReferences()  : array<string|int, mixed>
Get references section (references from and references to current record)
makeRef()  : array<string|int, mixed>
Make reference display
makeRefFrom()  : array<string|int, mixed>
Make reference display (what this elements points to)
transformFileReferenceToRecordReference()  : array<string|int, mixed>|null
Convert FAL file reference (sys_file_reference) to reference index (sys_refindex) table format

Properties

$row

protected array<string|int, mixed> $row = []

$type

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

protected string $type = 'db'

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
Return values
ResponseInterface

canAccessPage()

protected canAccessPage(string $tableName, array<string|int, mixed> $record) : bool
Parameters
$tableName : string

Name of the table

$record : array<string|int, mixed>

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<string|int, mixed>
Return values
array<string|int, mixed>

getFieldList()

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

protected getFieldList(ServerRequestInterface $request, string $table, int $uid) : array<string|int, mixed>
Parameters
$request : ServerRequestInterface
$table : string
$uid : int
Return values
array<string|int, mixed>

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<string|int, mixed>
Return values
array<string|int, mixed>

getPreview()

Get preview for current record

protected getPreview() : array<string|int, mixed>
Return values
array<string|int, mixed>

getPropertiesForTable()

Get property array for html table

protected getPropertiesForTable(ServerRequestInterface $request) : array<string|int, mixed>
Parameters
$request : ServerRequestInterface
Return values
array<string|int, mixed>

getRecordActions()

Returns the record actions

protected getRecordActions(string $table, int $uid, ServerRequestInterface $request) : array<string|int, mixed>
Parameters
$table : string
$uid : int
$request : ServerRequestInterface
Tags
throws
RouteNotFoundException
Return values
array<string|int, mixed>

getReferences()

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

protected getReferences(ServerRequestInterface $request, int|string $uid) : array<string|int, mixed>
Parameters
$request : ServerRequestInterface
$uid : int|string
Return values
array<string|int, mixed>

makeRef()

Make reference display

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

Table name

$ref : int|File

Filename or uid

$request : ServerRequestInterface
Tags
throws
RouteNotFoundException
Return values
array<string|int, mixed>

makeRefFrom()

Make reference display (what this elements points to)

protected makeRefFrom(string $table, int $ref, ServerRequestInterface $request) : array<string|int, mixed>
Parameters
$table : string

Table name

$ref : int

Filename or uid

$request : ServerRequestInterface
Return values
array<string|int, mixed>

transformFileReferenceToRecordReference()

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

protected transformFileReferenceToRecordReference(array<string|int, mixed> $referenceRecord) : array<string|int, mixed>|null
Parameters
$referenceRecord : array<string|int, mixed>
Return values
array<string|int, mixed>|null

        
On this page

Search results