TypoScriptTemplateInformationModuleFunctionController

This class displays the Info/Modify screen of the Web > Template module

Internal

This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.

Table of Contents

Properties

$id  : int
$pObj  : TypoScriptTemplateModuleController
$request  : ServerRequestInterface
$templateRow  : array<string|int, mixed>|null
The currently selected sys_template record
$templateService  : ExtendedTemplateService
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
init()  : mixed
Init, called from parent object
main()  : string
Main, called from parent object
getLanguageService()  : LanguageService
initialize_editor()  : bool
Create an instance of \TYPO3\CMS\Core\TypoScript\ExtendedTemplateService and looks for the first (visible) template record. If $template_uid was given and greater than zero, this record will be checked.
tableRowData()  : array<string|int, mixed>
Gets the data for a row of a HTML table in the fluid template

Properties

$request

protected ServerRequestInterface $request

$templateRow

The currently selected sys_template record

protected array<string|int, mixed>|null $templateRow

Methods

main()

Main, called from parent object

public main() : string
Return values
string

Information of the template status or the taken actions as HTML string

initialize_editor()

Create an instance of \TYPO3\CMS\Core\TypoScript\ExtendedTemplateService and looks for the first (visible) template record. If $template_uid was given and greater than zero, this record will be checked.

protected initialize_editor(int $pageId[, int $template_uid = 0 ]) : bool

Initializes the module. Done in this function because we may need to re-initialize if data is submitted!

Parameters
$pageId : int

The uid of the current page

$template_uid : int = 0

The uid of the template record to be rendered (only if more than one template on the current page)

Return values
bool

Returns TRUE if a template record was found, otherwise FALSE

tableRowData()

Gets the data for a row of a HTML table in the fluid template

protected tableRowData(string $label, string $data, string $field, int $id) : array<string|int, mixed>
Parameters
$label : string

The label to be shown (e.g. 'Title:')

$data : string

The data/information to be shown (e.g. 'Template for my site')

$field : string

The field/variable to be sent on clicking the edit icon (e.g. 'title')

$id : int

The field/variable to be sent on clicking the edit icon (e.g. 'title')

Return values
array<string|int, mixed>

Data for a row of a HTML table


        
On this page

Search results