‪TYPO3CMS  ‪main
TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController Class Reference
Inheritance diagram for TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController:
TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController

Public Member Functions

 __construct (private readonly ModuleTemplateFactory $moduleTemplateFactory, private readonly SysTemplateRepository $sysTemplateRepository, private readonly IncludeTreeTraverser $treeTraverser, private readonly ConditionVerdictAwareIncludeTreeTraverser $treeTraverserConditionVerdictAware, private readonly SysTemplateTreeBuilder $treeBuilder, private readonly LosslessTokenizer $losslessTokenizer, private readonly ResponseFactoryInterface $responseFactory, private readonly StreamFactoryInterface $streamFactory,)
 
 indexAction (ServerRequestInterface $request)
 
 sourceAction (ServerRequestInterface $request)
 
 sourceWithIncludesAction (ServerRequestInterface $request)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController
 injectIconFactory (IconFactory $iconFactory)
 
 injectUriBuilder (UriBuilder $uriBuilder)
 
 injectConnectionPool (ConnectionPool $connectionPool)
 
 injectDataHandler (DataHandler $dataHandler)
 
 injectSiteFinder (SiteFinder $siteFinder)
 

Private Member Functions

 handleToggledConstantConditions (RootInclude $constantTree, ModuleData $moduleData, ?array $parsedBody)
 
 handleToggledSetupConditions (RootInclude $constantTree, ModuleData $moduleData, ?array $parsedBody, array $flattenedConstants)
 
 addShortcutButtonToDocHeader (ModuleTemplate $view, string $moduleIdentifier, array $pageInfo, int $pageUid)
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController
 createExtensionTemplateAction (ServerRequestInterface $request, string $redirectTarget)
 
 createNewWebsiteTemplateAction (ServerRequestInterface $request, string $redirectTarget)
 
 addPreviewButtonToDocHeader (ModuleTemplate $view, int $pageId, int $dokType)
 
 getClosestAncestorPageWithTemplateRecord (int $pageId)
 
 getScopedRootline (SiteInterface $site, array $fullRootLine)
 
 getAllTemplateRecordsOnPage (int $pageId)
 
array< string, mixed > false getFirstTemplateRecordOnPage (int $pageId, int $templateUid=0)
 
 getTemplateQueryBuilder (int $pid)
 
 getLanguageService ()
 
 getBackendUser ()
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController
IconFactory $iconFactory
 
UriBuilder $uriBuilder
 
ConnectionPool $connectionPool
 
SiteFinder $siteFinder
 

Detailed Description

TypoScript template analyzer. Show TypoScript constants and setup include tree of current page.

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

Definition at line 53 of file TemplateAnalyzerController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController::__construct ( private readonly ModuleTemplateFactory  $moduleTemplateFactory,
private readonly SysTemplateRepository  $sysTemplateRepository,
private readonly IncludeTreeTraverser  $treeTraverser,
private readonly ConditionVerdictAwareIncludeTreeTraverser  $treeTraverserConditionVerdictAware,
private readonly SysTemplateTreeBuilder  $treeBuilder,
private readonly LosslessTokenizer  $losslessTokenizer,
private readonly ResponseFactoryInterface  $responseFactory,
private readonly StreamFactoryInterface  $streamFactory 
)

Definition at line 55 of file TemplateAnalyzerController.php.

Member Function Documentation

◆ addShortcutButtonToDocHeader()

TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController::addShortcutButtonToDocHeader ( ModuleTemplate  $view,
string  $moduleIdentifier,
array  $pageInfo,
int  $pageUid 
)
private

◆ handleToggledConstantConditions()

TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController::handleToggledConstantConditions ( RootInclude  $constantTree,
ModuleData  $moduleData,
?array  $parsedBody 
)
private

Align module data active constant conditions with toggled conditions from POST, write updated active conditions to user's module data if needed and prepare a list of active conditions for view.

Definition at line 244 of file TemplateAnalyzerController.php.

References TYPO3\CMS\Backend\Module\ModuleData\get(), TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController\getBackendUser(), TYPO3\CMS\Backend\Module\ModuleData\getModuleIdentifier(), TYPO3\CMS\Backend\Module\ModuleData\set(), and TYPO3\CMS\Backend\Module\ModuleData\toArray().

Referenced by TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController\indexAction().

◆ handleToggledSetupConditions()

TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController::handleToggledSetupConditions ( RootInclude  $constantTree,
ModuleData  $moduleData,
?array  $parsedBody,
array  $flattenedConstants 
)
private

Align module data active setup conditions with toggled conditions from POST, write updated active conditions to user's module data if needed and prepare a list of active conditions for view.

Definition at line 283 of file TemplateAnalyzerController.php.

References TYPO3\CMS\Backend\Module\ModuleData\get(), TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController\getBackendUser(), TYPO3\CMS\Backend\Module\ModuleData\getModuleIdentifier(), TYPO3\CMS\Backend\Module\ModuleData\set(), and TYPO3\CMS\Backend\Module\ModuleData\toArray().

Referenced by TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController\indexAction().

◆ indexAction()

◆ sourceAction()

TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController::sourceAction ( ServerRequestInterface  $request)

◆ sourceWithIncludesAction()

TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController::sourceWithIncludesAction ( ServerRequestInterface  $request)