‪TYPO3CMS  10.4
TYPO3\CMS\Info\Controller\PageInformationController Class Reference

Public Member Functions

 init ($pObj)
 
string main ()
 

Protected Member Functions

array modMenu ()
 
string cleanTableNames ()
 
 fillFieldConfiguration (int $pageId, ServerRequestInterface $request)
 
string getTable_pages ($id, int $depth=0)
 
array getPageRecordsRecursive (int $pid, int $depth, string $iconPrefix='', array $rows=[])
 
string pages_drawItem ($row, $fieldArr)
 
string getIcon ($row)
 
string getPagesTableFieldValue ($field, array $row)
 
int numberOfRecords ($table, $pid)
 
string addElement ($data)
 
BackendUserAuthentication getBackendUser ()
 
LanguageService null getLanguageService ()
 

Protected Attributes

array $fieldConfiguration = array( )
 
 $id
 
InfoModuleController $pObj
 
IconFactory $iconFactory
 
array $fieldArray
 
array $addElement_tdCssClass = array( )
 

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 36 of file PageInformationController.php.

Member Function Documentation

◆ addElement()

string TYPO3\CMS\Info\Controller\PageInformationController::addElement (   $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 508 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()

string 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.

Returns
‪string

Definition at line 148 of file PageInformationController.php.

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

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

◆ fillFieldConfiguration()

TYPO3\CMS\Info\Controller\PageInformationController::fillFieldConfiguration ( int  $pageId,
ServerRequestInterface  $request 
)
protected

◆ getBackendUser()

◆ getIcon()

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

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

Parameters
array$row‪Record array
Returns
‪string HTML for the icon

Definition at line 448 of file PageInformationController.php.

References TYPO3\CMS\Info\Controller\PageInformationController\getBackendUser(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordToolTip(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\Utility\BackendUtility\wrapClickMenuOnIcon().

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

◆ getLanguageService()

◆ 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 314 of file PageInformationController.php.

References $GLOBALS, TYPO3\CMS\Info\Controller\PageInformationController\getBackendUser(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW, and TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

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

◆ getPagesTableFieldValue()

string TYPO3\CMS\Info\Controller\PageInformationController::getPagesTableFieldValue (   $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 467 of file PageInformationController.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getProcessedValue().

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

◆ getTable_pages()

◆ init()

TYPO3\CMS\Info\Controller\PageInformationController::init (   $pObj)

Init, called from parent object

Parameters
InfoModuleController$pObj‪A reference to the parent (calling) object

Definition at line 70 of file PageInformationController.php.

References TYPO3\CMS\Info\Controller\PageInformationController\$pObj.

◆ main()

string TYPO3\CMS\Info\Controller\PageInformationController::main ( )

◆ modMenu()

array TYPO3\CMS\Info\Controller\PageInformationController::modMenu ( )
protected

◆ numberOfRecords()

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

Counts and returns the number of records on the page with $pid

Parameters
string$table‪Table name
int$pid‪Page id
Returns
‪int Number of records.

Definition at line 479 of file PageInformationController.php.

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

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

◆ pages_drawItem()

Member Data Documentation

◆ $addElement_tdCssClass

array TYPO3\CMS\Info\Controller\PageInformationController::$addElement_tdCssClass = array( )
protected

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

Definition at line 63 of file PageInformationController.php.

◆ $fieldArray

array TYPO3\CMS\Info\Controller\PageInformationController::$fieldArray
protected

◆ $fieldConfiguration

array TYPO3\CMS\Info\Controller\PageInformationController::$fieldConfiguration = array( )
protected

Definition at line 40 of file PageInformationController.php.

◆ $iconFactory

IconFactory TYPO3\CMS\Info\Controller\PageInformationController::$iconFactory
protected

Definition at line 53 of file PageInformationController.php.

◆ $id

TYPO3\CMS\Info\Controller\PageInformationController::$id
protected

◆ $pObj

InfoModuleController TYPO3\CMS\Info\Controller\PageInformationController::$pObj
protected

Contains a reference to the parent calling object

Definition at line 49 of file PageInformationController.php.

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