‪TYPO3CMS  10.4
TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController Class Reference

Public Member Functions

 init ($pObj, ServerRequestInterface $request)
 
string main ()
 

Protected Member Functions

array tableRowData ($label, $data, $field, $id)
 
bool initialize_editor ($pageId, $template_uid=0)
 
LanguageService getLanguageService ()
 

Protected Attributes

TypoScriptTemplateModuleController $pObj
 
array $templateRow
 
ExtendedTemplateService $templateService
 
 $id
 
ServerRequestInterface $request
 

Detailed Description

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.

Definition at line 30 of file TypoScriptTemplateInformationModuleFunctionController.php.

Member Function Documentation

◆ getLanguageService()

LanguageService TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::getLanguageService ( )
protected

◆ init()

TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::init (   $pObj,
ServerRequestInterface  $request 
)

◆ initialize_editor()

bool TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::initialize_editor (   $pageId,
  $template_uid = 0 
)
protected

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.

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

Parameters
int$pageId‪The uid of the current page
int$template_uid‪The uid of the template record to be rendered (only if more than one template on the current page)
Returns
‪bool Returns TRUE if a template record was found, otherwise FALSE

Definition at line 112 of file TypoScriptTemplateInformationModuleFunctionController.php.

Referenced by TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\main().

◆ main()

◆ tableRowData()

array TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::tableRowData (   $label,
  $data,
  $field,
  $id 
)
protected

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

Parameters
string$label‪The label to be shown (e.g. 'Title:', 'Sitetitle:')
string$data‪The data/information to be shown (e.g. 'Template for my site')
string$field‪The field/variable to be sent on clicking the edit icon (e.g. 'title', 'sitetitle')
int$id‪The field/variable to be sent on clicking the edit icon (e.g. 'title', 'sitetitle')
Returns
‪array Data for a row of a HTML table

Definition at line 77 of file TypoScriptTemplateInformationModuleFunctionController.php.

References TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\$id.

Referenced by TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController\main().

Member Data Documentation

◆ $id

◆ $pObj

TypoScriptTemplateModuleController TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::$pObj
protected

◆ $request

ServerRequestInterface TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::$request
protected

◆ $templateRow

array TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::$templateRow
protected

◆ $templateService

ExtendedTemplateService TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController::$templateService
protected