‪TYPO3CMS  11.5
TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController Class Reference

Public Member Functions

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

Protected Member Functions

 initializeTemplates (int $pageId, int $templateUid=0)
 
array renderTemplates (array $templates, string $selectedTemplate, bool $highlight, int $highlightLine)
 
 getCodeMirrorMarkup (string $label, int $lineOffset, int $lines, int $totalLines, int $highlightLine, string $content)
 
 getTextareaMarkup (string $title, int $linesInTemplate, string $content)
 

Protected Attributes

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

Detailed Description

TypoScript template analyzer

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

Definition at line 30 of file TemplateAnalyzerModuleFunctionController.php.

Member Function Documentation

◆ getCodeMirrorMarkup()

TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController::getCodeMirrorMarkup ( string  $label,
int  $lineOffset,
int  $lines,
int  $totalLines,
int  $highlightLine,
string  $content 
)
protected

◆ getTextareaMarkup()

TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController::getTextareaMarkup ( string  $title,
int  $linesInTemplate,
string  $content 
)
protected

◆ init()

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

◆ initializeTemplates()

TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController::initializeTemplates ( int  $pageId,
int  $templateUid = 0 
)
protected

◆ main()

◆ renderTemplates()

array TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController::renderTemplates ( array  $templates,
string  $selectedTemplate,
bool  $highlight,
int  $highlightLine 
)
protected

Render constants or setup templates using t3editor or plain textarea

Parameters
array$templates
string$selectedTemplate
bool$highlight
int$highlightLine
Returns
‪array Modified assign array

Definition at line 148 of file TemplateAnalyzerModuleFunctionController.php.

References TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController\getCodeMirrorMarkup(), TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController\getTextareaMarkup(), and TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded().

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

Member Data Documentation

◆ $pObj

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

◆ $request

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

◆ $templateRow

array null TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerModuleFunctionController::$templateRow
protected

The currently selected sys_template record

Definition at line 39 of file TemplateAnalyzerModuleFunctionController.php.

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

◆ $templateService

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

Definition at line 43 of file TemplateAnalyzerModuleFunctionController.php.