TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
InfoPageTyposcriptConfigController Class Reference
Inheritance diagram for InfoPageTyposcriptConfigController:
AbstractFunctionModule

Public Member Functions

 __construct ()
 
 modMenu ()
 
 main ()
 
- Public Member Functions inherited from AbstractFunctionModule
 init (&$pObj, $conf)
 
 handleExternalFunctionValue ()
 
 incLocalLang ()
 
 checkExtObj ()
 
 extObjContent ()
 
 modMenu ()
 

Protected Member Functions

 getOverviewOfPagesUsingTSConfig ()
 
 setInPageArray (&$hierarchicArray, $rootlineArray, $row)
 
 extractLinesFromTSConfig (array $row)
 
 getList ($pageArray, $lines=[], $pageDepth=0)
 
 getLanguageService ()
 
 getBackendUser ()
 
- Protected Member Functions inherited from AbstractFunctionModule
 getLanguageService ()
 
 getBackendUserAuthentication ()
 
 getDocumentTemplate ()
 
 getBackPath ()
 
 getDatabaseConnection ()
 
 getPageRenderer ()
 

Protected Attributes

 $iconFactory
 
 $view
 
- Protected Attributes inherited from AbstractFunctionModule
 $pageRenderer = null
 

Additional Inherited Members

- Public Attributes inherited from AbstractFunctionModule
 $pObj
 
 $extObj = null
 
 $thisPath = ''
 
 $localLangFile = 'locallang.xlf'
 
 $extClassConf
 
 $function_key = ''
 

Detailed Description

Page TSconfig viewer

Definition at line 30 of file InfoPageTyposcriptConfigController.php.

Constructor & Destructor Documentation

Member Function Documentation

extractLinesFromTSConfig ( array  $row)
protected

Extract the lines of TSConfig from a given pages row

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

Definition at line 295 of file InfoPageTyposcriptConfigController.php.

References GeneralUtility\trimExplode().

Referenced by InfoPageTyposcriptConfigController\setInPageArray().

getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 368 of file InfoPageTyposcriptConfigController.php.

References $GLOBALS.

Referenced by InfoPageTyposcriptConfigController\main(), and InfoPageTyposcriptConfigController\modMenu().

getLanguageService ( )
protected

Returns LanguageService

Returns

Definition at line 358 of file InfoPageTyposcriptConfigController.php.

References $GLOBALS.

Referenced by InfoPageTyposcriptConfigController\__construct(), and InfoPageTyposcriptConfigController\modMenu().

getList (   $pageArray,
  $lines = [],
  $pageDepth = 0 
)
protected

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

Parameters
array$pageArrayThe Page Array
array$linesLines that have been processed up to this point
int$pageDepthThe level of the current $pageArray being processed
Returns
array

Definition at line 320 of file InfoPageTyposcriptConfigController.php.

References MathUtility\canBeInterpretedAsInteger(), BackendUtility\getRecordWSOL(), GeneralUtility\linkThisScript(), and Icon\SIZE_SMALL.

Referenced by InfoPageTyposcriptConfigController\getOverviewOfPagesUsingTSConfig().

getOverviewOfPagesUsingTSConfig ( )
protected

Renders table rows of all pages containing TSConfig together with its rootline

Returns
array

Definition at line 231 of file InfoPageTyposcriptConfigController.php.

References BackendUtility\BEgetRootLine(), InfoPageTyposcriptConfigController\getList(), GeneralUtility\makeInstance(), and InfoPageTyposcriptConfigController\setInPageArray().

Referenced by InfoPageTyposcriptConfigController\main().

modMenu ( )

Function menu initialization

Returns
array Menu array

Definition at line 58 of file InfoPageTyposcriptConfigController.php.

References InfoPageTyposcriptConfigController\getBackendUser(), and InfoPageTyposcriptConfigController\getLanguageService().

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$hierarchicArrayThe hierarchic array (passed by reference)
array$rootlineArrayThe rootline array
array$rowThe row from the database containing the uid and TSConfig fields
Returns
void

Definition at line 269 of file InfoPageTyposcriptConfigController.php.

References InfoPageTyposcriptConfigController\extractLinesFromTSConfig().

Referenced by InfoPageTyposcriptConfigController\getOverviewOfPagesUsingTSConfig().

Member Data Documentation

$iconFactory
protected

Definition at line 35 of file InfoPageTyposcriptConfigController.php.

$view
protected

Definition at line 40 of file InfoPageTyposcriptConfigController.php.