TypoScriptTemplateInformationModuleFunctionController
This class displays the Info/Modify screen of the Web > Template module
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
$id
protected
int
$id
GET/POST var 'id'
$pObj
protected
TypoScriptTemplateModuleController
$pObj
$request
protected
ServerRequestInterface
$request
$templateRow
The currently selected sys_template record
protected
array<string|int, mixed>|null
$templateRow
$templateService
protected
ExtendedTemplateService
$templateService
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(UriBuilder $uriBuilder) : mixed
Parameters
- $uriBuilder : UriBuilder
init()
Init, called from parent object
public
init(TypoScriptTemplateModuleController $pObj, ServerRequestInterface $request) : mixed
Parameters
- $pObj : TypoScriptTemplateModuleController
-
A reference to the parent (calling) object
- $request : ServerRequestInterface
main()
Main, called from parent object
public
main() : string
Return values
string —Information of the template status or the taken actions as HTML string
getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServiceinitialize_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