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

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)
protected

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)

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

-tags

Returns
‪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 ( )
protected

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)
protected

◆ getAllowedModuleOptions()

◆ getBackendLayouts()

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

◆ getIcon()

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

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 = [] 
)
protected

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

Parameters
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
Returns
‪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 
)
protected

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().

Parameters
string$field‪The name of the field of which the value should be rendered.
array$row‪The pages table row as an associative array.
Returns
‪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 
)
protected

◆ pages_drawItem()

◆ resolveBackendLayoutValue()

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

Member Data Documentation

◆ $addElement_tdCssClass

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

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
protected

Definition at line 43 of file PageInformationController.php.

◆ $fieldArray

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

◆ $fieldConfiguration

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

Definition at line 44 of file PageInformationController.php.