TYPO3  7.6
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ElementInformationController Class Reference

Public Member Functions

 __construct ()
 
 init ()
 
 mainAction (ServerRequestInterface $request, ResponseInterface $response)
 
 main ()
 
 printContent ()
 
 getLabelForTableColumn ($tableName, $fieldName)
 

Public Attributes

 $table
 
 $uid
 
 $access = false
 
 $type = ''
 
 $doc
 
 $pageInfo
 

Protected Member Functions

 initDatabaseRecord ()
 
 initFileOrFolderRecord ()
 
 renderPageTitle ()
 
 renderReferences ()
 
 renderBackButton ()
 
 renderFileInformationAsTable ($fieldList)
 
 getRecordActions ($table, $uid)
 
 makeRef ($table, $ref)
 
 makeRefFrom ($table, $ref)
 
 transformFileReferenceToRecordReference (array $referenceRecord)
 
 getLanguageService ()
 
 getBackendUser ()
 
 getDatabaseConnection ()
 

Protected Attributes

 $permsClause
 
 $content = ''
 
 $row
 
 $fileObject
 
 $folderObject
 
 $titleTag
 
 $iconFactory
 

Detailed Description

Script Class for showing information about an item.

Definition at line 31 of file ElementInformationController.php.

Constructor & Destructor Documentation

__construct ( )

Member Function Documentation

getBackendUser ( )
protected
getDatabaseConnection ( )
protected
getLabelForTableColumn (   $tableName,
  $fieldName 
)

Get field name for specified table/column name

Parameters
string$tableNameTable name
string$fieldNameColumn name
Returns
string label

Definition at line 576 of file ElementInformationController.php.

References $GLOBALS, and ElementInformationController\getLanguageService().

Referenced by ElementInformationController\makeRef(), and ElementInformationController\makeRefFrom().

getLanguageService ( )
protected
getRecordActions (   $table,
  $uid 
)
protected
init ( )
initDatabaseRecord ( )
protected
initFileOrFolderRecord ( )
protected

Init file/folder parameters

Definition at line 173 of file ElementInformationController.php.

References ResourceFactory\getInstance(), and BackendUtility\getRecordWSOL().

Referenced by ElementInformationController\init().

main ( )
mainAction ( ServerRequestInterface  $request,
ResponseInterface  $response 
)

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

Definition at line 203 of file ElementInformationController.php.

References ElementInformationController\$content, $response, MessageInterface\getBody(), and ElementInformationController\main().

makeRef (   $table,
  $ref 
)
protected
makeRefFrom (   $table,
  $ref 
)
protected
printContent ( )

End page and print content

Returns
void
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8, use mainAction() instead

Definition at line 561 of file ElementInformationController.php.

References GeneralUtility\logDeprecatedFunction().

renderBackButton ( )
protected

Render a back button, if a returnUrl was provided

Returns
string

Definition at line 502 of file ElementInformationController.php.

References GeneralUtility\_GET(), ElementInformationController\getLanguageService(), GeneralUtility\sanitizeLocalUrl(), and Icon\SIZE_SMALL.

Referenced by ElementInformationController\main().

renderFileInformationAsTable (   $fieldList)
protected
renderPageTitle ( )
protected

Render page title with icon, table title and record title

Returns
string

Definition at line 254 of file ElementInformationController.php.

References $GLOBALS, ElementInformationController\$table, elseif, ElementInformationController\getLanguageService(), and BackendUtility\getRecordTitle().

Referenced by ElementInformationController\main().

renderReferences ( )
protected

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

Returns
string

Definition at line 461 of file ElementInformationController.php.

References ElementInformationController\$content, ElementInformationController\getLanguageService(), ElementInformationController\makeRef(), and ElementInformationController\makeRefFrom().

Referenced by ElementInformationController\main().

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

References ElementInformationController\getDatabaseConnection().

Referenced by ElementInformationController\makeRef().

Member Data Documentation

$access = false

Definition at line 55 of file ElementInformationController.php.

$content = ''
protected
$doc

Definition at line 69 of file ElementInformationController.php.

$fileObject
protected

Definition at line 94 of file ElementInformationController.php.

$folderObject
protected

Definition at line 99 of file ElementInformationController.php.

$iconFactory
protected

Definition at line 111 of file ElementInformationController.php.

$pageInfo
$permsClause
protected

Definition at line 50 of file ElementInformationController.php.

$row
protected
$table
$titleTag
protected

Definition at line 106 of file ElementInformationController.php.

$type = ''

Definition at line 64 of file ElementInformationController.php.

$uid