TYPO3
7.6
|
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 | |
Script Class for showing information about an item.
Definition at line 31 of file ElementInformationController.php.
__construct | ( | ) |
Constructor
Definition at line 116 of file ElementInformationController.php.
References $GLOBALS, ElementInformationController\init(), and GeneralUtility\makeInstance().
|
protected |
Returns the current BE user.
Definition at line 906 of file ElementInformationController.php.
References $GLOBALS.
Referenced by ElementInformationController\init(), ElementInformationController\initDatabaseRecord(), and ElementInformationController\renderFileInformationAsTable().
|
protected |
Returns the database connection
Definition at line 916 of file ElementInformationController.php.
References $GLOBALS.
Referenced by ElementInformationController\makeRef(), ElementInformationController\makeRefFrom(), and ElementInformationController\transformFileReferenceToRecordReference().
getLabelForTableColumn | ( | $tableName, | |
$fieldName | |||
) |
Get field name for specified table/column name
string | $tableName | Table name |
string | $fieldName | Column name |
Definition at line 576 of file ElementInformationController.php.
References $GLOBALS, and ElementInformationController\getLanguageService().
Referenced by ElementInformationController\makeRef(), and ElementInformationController\makeRefFrom().
|
protected |
Returns LanguageService
Definition at line 896 of file ElementInformationController.php.
References $GLOBALS.
Referenced by ElementInformationController\getLabelForTableColumn(), ElementInformationController\getRecordActions(), ElementInformationController\makeRef(), ElementInformationController\makeRefFrom(), ElementInformationController\renderBackButton(), ElementInformationController\renderFileInformationAsTable(), ElementInformationController\renderPageTitle(), and ElementInformationController\renderReferences().
|
protected |
Returns the rendered record actions
string | $table | |
int | $uid |
Definition at line 596 of file ElementInformationController.php.
References ElementInformationController\$table, ElementInformationController\$uid, $url, BackendUtility\BEgetRootLine(), GeneralUtility\getIndpEnv(), ElementInformationController\getLanguageService(), Icon\SIZE_SMALL, and BackendUtility\viewOnClick().
Referenced by ElementInformationController\makeRef(), and ElementInformationController\makeRefFrom().
init | ( | ) |
Determines if table/uid point to database record or file and if user has access to view information
Definition at line 130 of file ElementInformationController.php.
References $GLOBALS, GeneralUtility\_GET(), elseif, ElementInformationController\getBackendUser(), ElementInformationController\initDatabaseRecord(), ElementInformationController\initFileOrFolderRecord(), and GeneralUtility\makeInstance().
Referenced by ElementInformationController\__construct().
|
protected |
Init database records (table)
Definition at line 149 of file ElementInformationController.php.
References ElementInformationController\$pageInfo, ElementInformationController\getBackendUser(), BackendUtility\getRecordWSOL(), and BackendUtility\readPageAccess().
Referenced by ElementInformationController\init().
|
protected |
Init file/folder parameters
Definition at line 173 of file ElementInformationController.php.
References ResourceFactory\getInstance(), and BackendUtility\getRecordWSOL().
Referenced by ElementInformationController\init().
main | ( | ) |
Definition at line 218 of file ElementInformationController.php.
References $GLOBALS, GeneralUtility\getUserObj(), ElementInformationController\renderBackButton(), ElementInformationController\renderPageTitle(), and ElementInformationController\renderReferences().
Referenced by ElementInformationController\mainAction().
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
ServerRequestInterface | $request | the current request |
ResponseInterface | $response |
Definition at line 203 of file ElementInformationController.php.
References ElementInformationController\$content, $response, MessageInterface\getBody(), and ElementInformationController\main().
|
protected |
Make reference display
string | $table | Table name |
string | \TYPO3\CMS\Core\Resource\File | $ref | Filename or uid |
Definition at line 657 of file ElementInformationController.php.
References $GLOBALS, $lang, ElementInformationController\$row, ElementInformationController\$table, $url, ElementInformationController\getDatabaseConnection(), GeneralUtility\getIndpEnv(), ElementInformationController\getLabelForTableColumn(), ElementInformationController\getLanguageService(), BackendUtility\getRecord(), ElementInformationController\getRecordActions(), BackendUtility\getRecordTitle(), Icon\SIZE_SMALL, and ElementInformationController\transformFileReferenceToRecordReference().
Referenced by ElementInformationController\renderReferences().
|
protected |
Make reference display (what this elements points to)
string | $table | Table name |
string | $ref | Filename or uid |
Definition at line 775 of file ElementInformationController.php.
References $GLOBALS, $lang, ElementInformationController\$row, ElementInformationController\$table, $url, ElementInformationController\getDatabaseConnection(), GeneralUtility\getIndpEnv(), ElementInformationController\getLabelForTableColumn(), ElementInformationController\getLanguageService(), BackendUtility\getRecord(), ElementInformationController\getRecordActions(), BackendUtility\getRecordTitle(), and Icon\SIZE_SMALL.
Referenced by ElementInformationController\renderReferences().
printContent | ( | ) |
End page and print content
Definition at line 561 of file ElementInformationController.php.
References GeneralUtility\logDeprecatedFunction().
|
protected |
Render a back button, if a returnUrl was provided
Definition at line 502 of file ElementInformationController.php.
References GeneralUtility\_GET(), ElementInformationController\getLanguageService(), GeneralUtility\sanitizeLocalUrl(), and Icon\SIZE_SMALL.
Referenced by ElementInformationController\main().
|
protected |
Renders file properties as html table
array | $fieldList |
Definition at line 522 of file ElementInformationController.php.
References $GLOBALS, ElementInformationController\$table, ElementInformationController\$uid, ElementInformationController\getBackendUser(), BackendUtility\getItemLabel(), and ElementInformationController\getLanguageService().
|
protected |
Render page title with icon, table title and record title
Definition at line 254 of file ElementInformationController.php.
References $GLOBALS, ElementInformationController\$table, elseif, ElementInformationController\getLanguageService(), and BackendUtility\getRecordTitle().
Referenced by ElementInformationController\main().
|
protected |
Render references section (references from and references to current record)
Definition at line 461 of file ElementInformationController.php.
References ElementInformationController\$content, ElementInformationController\getLanguageService(), ElementInformationController\makeRef(), and ElementInformationController\makeRefFrom().
Referenced by ElementInformationController\main().
|
protected |
Convert FAL file reference (sys_file_reference) to reference index (sys_refindex) table format
array | $referenceRecord |
Definition at line 874 of file ElementInformationController.php.
References ElementInformationController\getDatabaseConnection().
Referenced by ElementInformationController\makeRef().
$access = false |
Definition at line 55 of file ElementInformationController.php.
|
protected |
Definition at line 74 of file ElementInformationController.php.
Referenced by ElementInformationController\mainAction(), and ElementInformationController\renderReferences().
$doc |
Definition at line 69 of file ElementInformationController.php.
|
protected |
Definition at line 94 of file ElementInformationController.php.
|
protected |
Definition at line 99 of file ElementInformationController.php.
|
protected |
Definition at line 111 of file ElementInformationController.php.
$pageInfo |
Definition at line 82 of file ElementInformationController.php.
Referenced by ElementInformationController\initDatabaseRecord().
|
protected |
Definition at line 50 of file ElementInformationController.php.
|
protected |
Definition at line 89 of file ElementInformationController.php.
Referenced by ElementInformationController\makeRef(), and ElementInformationController\makeRefFrom().
$table |
Definition at line 38 of file ElementInformationController.php.
Referenced by ElementInformationController\getRecordActions(), ElementInformationController\makeRef(), ElementInformationController\makeRefFrom(), ElementInformationController\renderFileInformationAsTable(), and ElementInformationController\renderPageTitle().
|
protected |
Definition at line 106 of file ElementInformationController.php.
$type = '' |
Definition at line 64 of file ElementInformationController.php.
$uid |
Definition at line 45 of file ElementInformationController.php.
Referenced by ElementInformationController\getRecordActions(), and ElementInformationController\renderFileInformationAsTable().