‪TYPO3CMS  ‪main
TYPO3\CMS\Info\Controller\PageInformationController Class Reference
Inheritance diagram for TYPO3\CMS\Info\Controller\PageInformationController:

Public Member Functions

 handleRequest (ServerRequestInterface $request)
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Info\Controller\InfoModuleController
 __construct (protected readonly IconFactory $iconFactory, protected readonly UriBuilder $uriBuilder, protected readonly ModuleProvider $moduleProvider, protected readonly PageRenderer $pageRenderer, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly EventDispatcherInterface $eventDispatcher,)

Protected Member Functions

 getAllowedModuleOptions ()
 cleanTableNames ()
 fillFieldConfiguration (int $pageId)
string getTable_pages (int $id, int $depth, ServerRequestInterface $request)
array getPageRecordsRecursive (int $pid, int $depth, string $iconPrefix='', array $rows=[])
 pages_drawItem (array $row, ServerRequestInterface $request)
 getIcon (array $row)
string getPagesTableFieldValue (string $field, array $row)
 numberOfRecords (string $table, int $pid)
string addElement (array $data)
 getBackendLayouts (array $row, string $field)
 resolveBackendLayoutValue (?string $layoutValue, string $field, array $row)
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Info\Controller\InfoModuleController
 init (ServerRequestInterface $request)
 getButtons ()
 getLanguageService ()
 getBackendUser ()

Protected Attributes

BackendLayoutView $backendLayoutView = null
array $fieldConfiguration = []
array $fieldArray = []
array $addElement_tdCssClass = []
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Info\Controller\InfoModuleController
ModuleInterface $currentModule
ModuleTemplate $view
int $id

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Info\Controller\InfoModuleController
array $pageinfo = []

Detailed Description

Class for displaying page information (records, page record properties) in Web -> Info

This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.

Definition at line 41 of file PageInformationController.php.

Member Function Documentation

◆ addElement()

string TYPO3\CMS\Info\Controller\PageInformationController::addElement ( array  $data)

Returns a table-row with the content from the fields in the input data array. OBS: $this->fieldArray MUST be set! (represents the list of fields to display)

array$data‪Is the data array, record with the fields. Notice: These fields are (currently) NOT htmlspecialchar'ed before being wrapped in


‪string HTML content for the table row

Definition at line 480 of file PageInformationController.php.

References TYPO3\CMS\Info\Controller\PageInformationController\$fieldArray, and $fields.

Referenced by TYPO3\CMS\Info\Controller\PageInformationController\getTable_pages(), and TYPO3\CMS\Info\Controller\PageInformationController\pages_drawItem().

◆ cleanTableNames()

TYPO3\CMS\Info\Controller\PageInformationController::cleanTableNames ( )

Function, which returns all tables to which the user has access. Also a set of standard tables (pages, sys_filemounts, etc...) are filtered out. So what is left is basically all tables which makes sense to list content from.

Definition at line 107 of file PageInformationController.php.

References $GLOBALS, and TYPO3\CMS\Info\Controller\InfoModuleController\getBackendUser().

Referenced by TYPO3\CMS\Info\Controller\PageInformationController\fillFieldConfiguration().

◆ fillFieldConfiguration()

TYPO3\CMS\Info\Controller\PageInformationController::fillFieldConfiguration ( int  $pageId)

◆ getAllowedModuleOptions()

◆ getBackendLayouts()

TYPO3\CMS\Info\Controller\PageInformationController::getBackendLayouts ( array  $row,
string  $field 

◆ getIcon()

TYPO3\CMS\Info\Controller\PageInformationController::getIcon ( array  $row)

Creates the icon image tag for the page and wraps it in a link which will trigger the click menu.

Definition at line 426 of file PageInformationController.php.

References TYPO3\CMS\Info\Controller\InfoModuleController\getBackendUser().

Referenced by TYPO3\CMS\Info\Controller\PageInformationController\pages_drawItem().

◆ getPageRecordsRecursive()

array TYPO3\CMS\Info\Controller\PageInformationController::getPageRecordsRecursive ( int  $pid,
int  $depth,
string  $iconPrefix = '',
array  $rows = [] 

Adds pages-rows to an array, selecting recursively in the page tree.

int$pid‪Starting page id to select from
string$iconPrefix‪Prefix for icon code.
int$depth‪Depth (decreasing)
array$rows‪Array which will accumulate page rows
‪array $rows with added rows.

Definition at line 274 of file PageInformationController.php.

References $GLOBALS, TYPO3\CMS\Info\Controller\InfoModuleController\getBackendUser(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW, and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Info\Controller\PageInformationController\getTable_pages().

◆ getPagesTableFieldValue()

string TYPO3\CMS\Info\Controller\PageInformationController::getPagesTableFieldValue ( string  $field,
array  $row 

Returns the HTML code for rendering a field in the pages table. The row value is processed to a human readable form and the result is parsed through htmlspecialchars().

string$field‪The name of the field of which the value should be rendered.
array$row‪The pages table row as an associative array.
‪string The rendered table field value.

Definition at line 444 of file PageInformationController.php.

Referenced by TYPO3\CMS\Info\Controller\PageInformationController\pages_drawItem(), and TYPO3\CMS\Info\Controller\PageInformationController\resolveBackendLayoutValue().

◆ getTable_pages()

◆ handleRequest()

TYPO3\CMS\Info\Controller\PageInformationController::handleRequest ( ServerRequestInterface  $request)

◆ numberOfRecords()

TYPO3\CMS\Info\Controller\PageInformationController::numberOfRecords ( string  $table,
int  $pid 

◆ pages_drawItem()

◆ resolveBackendLayoutValue()

TYPO3\CMS\Info\Controller\PageInformationController::resolveBackendLayoutValue ( ?string  $layoutValue,
string  $field,
array  $row 

Member Data Documentation

◆ $addElement_tdCssClass

array TYPO3\CMS\Info\Controller\PageInformationController::$addElement_tdCssClass = []

Keys are fieldnames and values are td-css-classes to add in addElement();

Definition at line 50 of file PageInformationController.php.

◆ $backendLayoutView

BackendLayoutView TYPO3\CMS\Info\Controller\PageInformationController::$backendLayoutView = null

Definition at line 43 of file PageInformationController.php.

◆ $fieldArray

array TYPO3\CMS\Info\Controller\PageInformationController::$fieldArray = []

◆ $fieldConfiguration

array TYPO3\CMS\Info\Controller\PageInformationController::$fieldConfiguration = []

Definition at line 44 of file PageInformationController.php.