PageInformationController
Status -> Pagetree Overview
This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.
Attributes
- #[AsController]
Table of Contents
Properties
- $backendLayoutView : BackendLayoutView
- $componentFactory : ComponentFactory
- $connectionPool : ConnectionPool
- $eventDispatcher : EventDispatcherInterface
- $iconFactory : IconFactory
- $localizationRepository : LocalizationRepository
- $moduleTemplateFactory : ModuleTemplateFactory
- $tcaSchemaFactory : TcaSchemaFactory
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- addElement() : string
- Returns a table-row with the content from the fields in the input data array.
- getAllowedTableNames() : array<string|int, mixed>
- A list of table names allowed to be listed when ###ALL_TABLES### is used in TSConfig.
- getBackendLayouts() : array<string|int, mixed>
- getBackendUser() : BackendUserAuthentication
- getFieldConfiguration() : array<string|int, mixed>
- Generate configuration for field and table selection from TSConfig.
- getIcon() : string
- Creates the icon image tag for the page and wraps it in a link which will trigger the click menu.
- getLanguageService() : LanguageService
- getModuleOptions() : array<string|int, mixed>
- getPageRecordsRecursive() : array<string|int, mixed>
- Adds pages-rows to an array, selecting recursively in the page tree.
- getTreeRootPage() : array<string|int, mixed>
- Get tree root page
- numberOfRecords() : int
- Counts and returns the number of records on the page with $pid
- pages_drawItem() : string
- Adds a list item for the pages-rendering
- renderMainTable() : string
- Renders records from the pages table from page id
- resolveBackendLayoutValue() : string
Properties
$backendLayoutView
protected
BackendLayoutView
$backendLayoutView
$componentFactory
protected
ComponentFactory
$componentFactory
$connectionPool
protected
ConnectionPool
$connectionPool
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$iconFactory
protected
IconFactory
$iconFactory
$localizationRepository
protected
LocalizationRepository
$localizationRepository
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$tcaSchemaFactory
protected
TcaSchemaFactory
$tcaSchemaFactory
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(IconFactory $iconFactory, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory, EventDispatcherInterface $eventDispatcher, TcaSchemaFactory $tcaSchemaFactory, ComponentFactory $componentFactory, BackendLayoutView $backendLayoutView, ConnectionPool $connectionPool, LocalizationRepository $localizationRepository) : mixed
Parameters
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
- $moduleTemplateFactory : ModuleTemplateFactory
- $eventDispatcher : EventDispatcherInterface
- $tcaSchemaFactory : TcaSchemaFactory
- $componentFactory : ComponentFactory
- $backendLayoutView : BackendLayoutView
- $connectionPool : ConnectionPool
- $localizationRepository : LocalizationRepository
handleRequest()
public
handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceaddElement()
Returns a table-row with the content from the fields in the input data array.
protected
addElement(array<string|int, mixed> $data, array<string|int, mixed> $fieldArray) : string
Parameters
- $data : array<string|int, mixed>
-
Record with field values, NOT htmlspecialchar'ed
- $fieldArray : array<string|int, mixed>
Return values
string —HTML content for the table row
getAllowedTableNames()
A list of table names allowed to be listed when ###ALL_TABLES### is used in TSConfig.
protected
getAllowedTableNames() : array<string|int, mixed>
Some tables like 'pages' are blinded by default, all remaining ones are user access checked.
Return values
array<string|int, mixed>getBackendLayouts()
protected
getBackendLayouts(array<string|int, mixed> $row, string $field) : array<string|int, mixed>
Parameters
- $row : array<string|int, mixed>
- $field : string
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetFieldConfiguration()
Generate configuration for field and table selection from TSConfig.
protected
getFieldConfiguration(int $pageId) : array<string|int, mixed>
Parameters
- $pageId : int
Return values
array<string|int, mixed>getIcon()
Creates the icon image tag for the page and wraps it in a link which will trigger the click menu.
protected
getIcon(array<string|int, mixed> $row) : string
Parameters
- $row : array<string|int, mixed>
Return values
stringgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetModuleOptions()
protected
getModuleOptions(array<string|int, mixed> $siteLanguages, array<string|int, mixed> $fieldConfiguration) : array<string|int, mixed>
Parameters
- $siteLanguages : array<string|int, mixed>
- $fieldConfiguration : array<string|int, mixed>
Return values
array<string|int, mixed>getPageRecordsRecursive()
Adds pages-rows to an array, selecting recursively in the page tree.
protected
getPageRecordsRecursive(int $pid, int $depth, int $language[, string $iconPrefix = '' ][, array<string|int, mixed> $rows = [] ]) : array<string|int, mixed>
Parameters
- $pid : int
-
Starting page id to select from
- $depth : int
-
Depth (decreasing)
- $language : int
- $iconPrefix : string = ''
-
Prefix for icon code.
- $rows : array<string|int, mixed> = []
-
Array which will accumulate page rows
Return values
array<string|int, mixed> —$rows with added rows.
getTreeRootPage()
Get tree root page
protected
getTreeRootPage(int $pid, int $language) : array<string|int, mixed>
Parameters
- $pid : int
-
Starting page
- $language : int
-
Selected site language
Return values
array<string|int, mixed>numberOfRecords()
Counts and returns the number of records on the page with $pid
protected
numberOfRecords(string $table, int $pid) : int
Parameters
- $table : string
- $pid : int
Return values
intpages_drawItem()
Adds a list item for the pages-rendering
protected
pages_drawItem(array<string|int, mixed> $row, ServerRequestInterface $request, array<string|int, mixed> $siteLanguages, array<string|int, mixed> $fieldArray) : string
Parameters
- $row : array<string|int, mixed>
- $request : ServerRequestInterface
- $siteLanguages : array<string|int, mixed>
- $fieldArray : array<string|int, mixed>
Return values
stringrenderMainTable()
Renders records from the pages table from page id
protected
renderMainTable(int $id, int $depth, int $language, array<string|int, mixed> $siteLanguages, ServerRequestInterface $request, array<string|int, mixed> $fieldArray) : string
Parameters
- $id : int
- $depth : int
- $language : int
- $siteLanguages : array<string|int, mixed>
- $request : ServerRequestInterface
- $fieldArray : array<string|int, mixed>
Return values
string —HTML for the listing
resolveBackendLayoutValue()
protected
resolveBackendLayoutValue(string|null $layoutValue, string $field, array<string|int, mixed> $row) : string
Parameters
- $layoutValue : string|null
- $field : string
- $row : array<string|int, mixed>