PageInformationController extends InfoModuleController

Class for displaying page information (records, page record properties) in Web -> Info

Internal

This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.

Attributes
#[AsController]

Table of Contents

Properties

$pageinfo  : array<string|int, mixed>
$addElement_tdCssClass  : array<string|int, mixed>
Keys are fieldnames and values are td-css-classes to add in addElement();
$backendLayoutView  : BackendLayoutView|null
$currentModule  : ModuleInterface
$eventDispatcher  : EventDispatcherInterface
$fieldArray  : array<string|int, mixed>
$fieldConfiguration  : array<string|int, mixed>
$iconFactory  : IconFactory
$id  : int
Value of the GET/POST var 'id' = the current page ID
$moduleProvider  : ModuleProvider
$moduleTemplateFactory  : ModuleTemplateFactory
$pageRenderer  : PageRenderer
$uriBuilder  : UriBuilder
$view  : ModuleTemplate|null

Methods

__construct()  : mixed
handleRequest()  : ResponseInterface
Main action, should never be called, but works as a fallback if e.g. no submodule is accessible
addElement()  : string
Returns a table-row with the content from the fields in the input data array.
cleanTableNames()  : string
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.
fillFieldConfiguration()  : void
Generate configuration for field selection
getAllowedModuleOptions()  : array<string|int, mixed>
getBackendLayouts()  : array<string|int, mixed>
getBackendUser()  : BackendUserAuthentication
getButtons()  : void
Create the panel of buttons for submitting the form or otherwise perform operations.
getIcon()  : string
Creates the icon image tag for the page and wraps it in a link which will trigger the click menu.
getLanguageService()  : LanguageService
getPageRecordsRecursive()  : array<string|int, mixed>
Adds pages-rows to an array, selecting recursively in the page tree.
getPagesTableFieldValue()  : string
Returns the HTML code for rendering a field in the pages table.
getTable_pages()  : string
Renders records from the pages table from page id
init()  : void
Initializes the backend module by setting internal variables, initializing the menu.
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
resolveBackendLayoutValue()  : string

Properties

$pageinfo

public array<string|int, mixed> $pageinfo = []

$addElement_tdCssClass

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

protected array<string|int, mixed> $addElement_tdCssClass = []

$eventDispatcher read-only

protected EventDispatcherInterface $eventDispatcher

$fieldArray

protected array<string|int, mixed> $fieldArray = []

$fieldConfiguration

protected array<string|int, mixed> $fieldConfiguration = []

$id

Value of the GET/POST var 'id' = the current page ID

protected int $id

Methods

handleRequest()

Main action, should never be called, but works as a fallback if e.g. no submodule is accessible

public handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

addElement()

Returns a table-row with the content from the fields in the input data array.

protected addElement(array<string|int, mixed> $data) : string

OBS: $this->fieldArray MUST be set! (represents the list of fields to display)

Parameters
$data : array<string|int, mixed>

Is the data array, record with the fields. Notice: These fields are (currently) NOT htmlspecialchar'ed before being wrapped in -tags

Return values
string

HTML content for the table row

cleanTableNames()

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.

protected cleanTableNames() : string
Return values
string

fillFieldConfiguration()

Generate configuration for field selection

protected fillFieldConfiguration(int $pageId) : void
Parameters
$pageId : int

getAllowedModuleOptions()

protected getAllowedModuleOptions() : array<string|int, mixed>
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>

getButtons()

Create the panel of buttons for submitting the form or otherwise perform operations.

protected getButtons() : void

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
string

getPageRecordsRecursive()

Adds pages-rows to an array, selecting recursively in the page tree.

protected getPageRecordsRecursive(int $pid, int $depth[, string $iconPrefix = '' ][, array<string|int, mixed> $rows = [] ]) : array<string|int, mixed>
Parameters
$pid : int

Starting page id to select from

$depth : int

Depth (decreasing)

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

getPagesTableFieldValue()

Returns the HTML code for rendering a field in the pages table.

protected getPagesTableFieldValue(string $field, array<string|int, mixed> $row) : string

The row value is processed to a human readable form and the result is parsed through htmlspecialchars().

Parameters
$field : string

The name of the field of which the value should be rendered.

$row : array<string|int, mixed>

The pages table row as an associative array.

Return values
string

The rendered table field value.

getTable_pages()

Renders records from the pages table from page id

protected getTable_pages(int $id, int $depth, ServerRequestInterface $request) : string
Parameters
$id : int
$depth : int
$request : ServerRequestInterface
Tags
throws
RouteNotFoundException
Return values
string

HTML for the listing

init()

Initializes the backend module by setting internal variables, initializing the menu.

protected init(ServerRequestInterface $request) : void
Parameters
$request : ServerRequestInterface

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
int

pages_drawItem()

Adds a list item for the pages-rendering

protected pages_drawItem(array<string|int, mixed> $row, ServerRequestInterface $request) : string
Parameters
$row : array<string|int, mixed>
$request : ServerRequestInterface
Return values
string

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>
Return values
string

        
On this page

Search results