‪TYPO3CMS  11.5
TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController Class Reference

Public Member Functions

 __construct (IconFactory $iconFactory, UriBuilder $uriBuilder)
 
 init (InfoModuleController $pObj, ServerRequestInterface $request)
 
string main (ServerRequestInterface $request)
 

Protected Member Functions

array modMenu ()
 
array getOverviewOfPagesUsingTSConfig ()
 
 setInPageArray (&$hierarchicArray, $rootlineArray, $row)
 
array extractLinesFromTSConfig (array $row)
 
array getList ($pageArray, $lines=[], $pageDepth=0)
 
StandaloneView getFluidTemplateObject ()
 
 getCodeMirrorHtml (string $label, string $content)
 
 getTextareaMarkup (string $content)
 
BackendUserAuthentication getBackendUser ()
 
LanguageService getLanguageService ()
 

Protected Attributes

IconFactory $iconFactory
 
UriBuilder $uriBuilder
 
StandaloneView $view
 
InfoModuleController $pObj
 
 $id
 

Detailed Description

Page TSconfig viewer 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 InfoPageTyposcriptConfigController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::__construct ( IconFactory  $iconFactory,
UriBuilder  $uriBuilder 
)

Member Function Documentation

◆ extractLinesFromTSConfig()

array TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::extractLinesFromTSConfig ( array  $row)
protected

Extract the lines of TSConfig from a given pages row

Parameters
array$row‪The row from the database containing the uid and TSConfig fields
Returns
‪array

Definition at line 323 of file InfoPageTyposcriptConfigController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController\setInPageArray().

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::getBackendUser ( )
protected
Returns
‪BackendUserAuthentication

Definition at line 435 of file InfoPageTyposcriptConfigController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController\modMenu().

◆ getCodeMirrorHtml()

TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::getCodeMirrorHtml ( string  $label,
string  $content 
)
protected

◆ getFluidTemplateObject()

◆ getLanguageService()

LanguageService TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::getLanguageService ( )
protected

◆ getList()

array TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::getList (   $pageArray,
  $lines = [],
  $pageDepth = 0 
)
protected

Get the list of pages to show. This function is called recursively

Parameters
array$pageArray‪The Page Array
array$lines‪Lines that have been processed up to this point
int$pageDepth‪The level of the current $pageArray being processed
Returns
‪array

Definition at line 348 of file InfoPageTyposcriptConfigController.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController\getOverviewOfPagesUsingTSConfig().

◆ getOverviewOfPagesUsingTSConfig()

array TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::getOverviewOfPagesUsingTSConfig ( )
protected

◆ getTextareaMarkup()

TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::getTextareaMarkup ( string  $content)
protected

◆ init()

TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::init ( InfoModuleController  $pObj,
ServerRequestInterface  $request 
)

◆ main()

◆ modMenu()

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

◆ setInPageArray()

TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::setInPageArray ( $hierarchicArray,
  $rootlineArray,
  $row 
)
protected

Set page in array This function is called recursively and builds a multi-dimensional array that reflects the page hierarchy.

Parameters
array$hierarchicArray‪The hierarchic array (passed by reference)
array$rootlineArray‪The rootline array
array$row‪The row from the database containing the uid and TSConfig fields

Definition at line 297 of file InfoPageTyposcriptConfigController.php.

References TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController\extractLinesFromTSConfig().

Referenced by TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController\getOverviewOfPagesUsingTSConfig().

Member Data Documentation

◆ $iconFactory

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

◆ $id

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

Definition at line 57 of file InfoPageTyposcriptConfigController.php.

◆ $pObj

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

Contains a reference to the parent calling object

Definition at line 52 of file InfoPageTyposcriptConfigController.php.

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

◆ $uriBuilder

UriBuilder TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::$uriBuilder
protected

◆ $view

StandaloneView TYPO3\CMS\Info\Controller\InfoPageTyposcriptConfigController::$view
protected