InfoPageTyposcriptConfigController
Page TSconfig viewer in Web -> Info
This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.
Table of Contents
Properties
- $iconFactory : IconFactory
- $id : int
- $pObj : InfoModuleController
- $uriBuilder : UriBuilder
- $view : StandaloneView
Methods
- __construct() : mixed
- init() : mixed
- Init, called from parent object
- main() : string
- Main, called from parent object
- extractLinesFromTSConfig() : array<string|int, mixed>
- Extract the lines of TSConfig from a given pages row
- getBackendUser() : BackendUserAuthentication
- getCodeMirrorHtml() : string
- getFluidTemplateObject() : StandaloneView
- returns a new standalone view, shorthand function
- getLanguageService() : LanguageService
- getList() : array<string|int, mixed>
- Get the list of pages to show.
- getOverviewOfPagesUsingTSConfig() : array<string|int, mixed>
- Renders table rows of all pages containing TSConfig together with its rootline
- getTextareaMarkup() : string
- modMenu() : array<string|int, mixed>
- Function menu initialization
- setInPageArray() : mixed
- Set page in array This function is called recursively and builds a multi-dimensional array that reflects the page hierarchy.
Properties
$iconFactory
protected
IconFactory
$iconFactory
$id
protected
int
$id
Value of the GET/POST var 'id'
$pObj
protected
InfoModuleController
$pObj
Contains a reference to the parent calling object
$uriBuilder
protected
UriBuilder
$uriBuilder
$view
protected
StandaloneView
$view
Methods
__construct()
public
__construct(IconFactory $iconFactory, UriBuilder $uriBuilder) : mixed
Parameters
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
init()
Init, called from parent object
public
init(InfoModuleController $pObj, ServerRequestInterface $request) : mixed
Parameters
- $pObj : InfoModuleController
-
A reference to the parent (calling) object
- $request : ServerRequestInterface
main()
Main, called from parent object
public
main(ServerRequestInterface $request) : string
Parameters
- $request : ServerRequestInterface
Return values
string —HTML output
extractLinesFromTSConfig()
Extract the lines of TSConfig from a given pages row
protected
extractLinesFromTSConfig(array<string|int, mixed> $row) : array<string|int, mixed>
Parameters
- $row : array<string|int, mixed>
-
The row from the database containing the uid and TSConfig fields
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetCodeMirrorHtml()
protected
getCodeMirrorHtml(string $label, string $content) : string
Parameters
- $label : string
- $content : string
Return values
stringgetFluidTemplateObject()
returns a new standalone view, shorthand function
protected
getFluidTemplateObject() : StandaloneView
Return values
StandaloneViewgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetList()
Get the list of pages to show.
protected
getList(array<string|int, mixed> $pageArray[, array<string|int, mixed> $lines = [] ][, int $pageDepth = 0 ]) : array<string|int, mixed>
This function is called recursively
Parameters
- $pageArray : array<string|int, mixed>
-
The Page Array
- $lines : array<string|int, mixed> = []
-
Lines that have been processed up to this point
- $pageDepth : int = 0
-
The level of the current $pageArray being processed
Return values
array<string|int, mixed>getOverviewOfPagesUsingTSConfig()
Renders table rows of all pages containing TSConfig together with its rootline
protected
getOverviewOfPagesUsingTSConfig() : array<string|int, mixed>
Return values
array<string|int, mixed>getTextareaMarkup()
protected
getTextareaMarkup(string $content) : string
Parameters
- $content : string
Return values
stringmodMenu()
Function menu initialization
protected
modMenu() : array<string|int, mixed>
Return values
array<string|int, mixed> —Menu array
setInPageArray()
Set page in array This function is called recursively and builds a multi-dimensional array that reflects the page hierarchy.
protected
setInPageArray(array<string|int, mixed> &$hierarchicArray, array<string|int, mixed> $rootlineArray, array<string|int, mixed> $row) : mixed
Parameters
- $hierarchicArray : array<string|int, mixed>
-
The hierarchic array (passed by reference)
- $rootlineArray : array<string|int, mixed>
-
The rootline array
- $row : array<string|int, mixed>
-
The row from the database containing the uid and TSConfig fields