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

Public Member Functions

 injectIconFactory (IconFactory $iconFactory)
 
 injectUriBuilder (UriBuilder $uriBuilder)
 
 injectConnectionPool (ConnectionPool $connectionPool)
 
 injectDataHandler (DataHandler $dataHandler)
 
 injectSiteFinder (SiteFinder $siteFinder)
 

Protected Member Functions

 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

IconFactory $iconFactory
 
UriBuilder $uriBuilder
 
ConnectionPool $connectionPool
 
SiteFinder $siteFinder
 

Private Attributes

DataHandler $dataHandler
 

Detailed Description

Abstract class with helper methods for single 3rd level Template module controllers.

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

Definition at line 49 of file AbstractTemplateModuleController.php.

Member Function Documentation

◆ addPreviewButtonToDocHeader()

◆ createExtensionTemplateAction()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::createExtensionTemplateAction ( ServerRequestInterface  $request,
string  $redirectTarget 
)
protected

Action shared by info/modify ond constant editor to create a new "extension template"

Definition at line 85 of file AbstractTemplateModuleController.php.

Referenced by TYPO3\CMS\Tstemplate\Controller\InfoModifyController\handleRequest(), and TYPO3\CMS\Tstemplate\Controller\ConstantEditorController\handleRequest().

◆ createNewWebsiteTemplateAction()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::createNewWebsiteTemplateAction ( ServerRequestInterface  $request,
string  $redirectTarget 
)
protected

◆ getAllTemplateRecordsOnPage()

◆ getBackendUser()

◆ getClosestAncestorPageWithTemplateRecord()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::getClosestAncestorPageWithTemplateRecord ( int  $pageId)
protected

◆ getFirstTemplateRecordOnPage()

array<string,mixed> false TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::getFirstTemplateRecordOnPage ( int  $pageId,
int  $templateUid = 0 
)
protected

Get a single sys_template record attached to a single page. If multiple template records are on this page, the first (order by sorting) record will be returned, unless a specific template uid is specified via $templateUid

Parameters
int$pageId‪The pid to select sys_template records from
int$templateUid‪Optional template uid
Returns
‪array<string,mixed>|false Returns the template record or false if none was found

Definition at line 242 of file AbstractTemplateModuleController.php.

References TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController\getTemplateQueryBuilder(), and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController\getClosestAncestorPageWithTemplateRecord().

◆ getLanguageService()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::getLanguageService ( )
protected

Definition at line 273 of file AbstractTemplateModuleController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Tstemplate\Controller\ActiveTypoScriptController\addBackButtonToDocHeader(), TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController\addPreviewButtonToDocHeader(), TYPO3\CMS\Tstemplate\Controller\ConstantEditorController\addSaveButtonToDocHeader(), TYPO3\CMS\Tstemplate\Controller\TemplateRecordsOverviewController\addShortcutButtonToDocHeader(), TYPO3\CMS\Tstemplate\Controller\InfoModifyController\addShortcutButtonToDocHeader(), TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController\addShortcutButtonToDocHeader(), TYPO3\CMS\Tstemplate\Controller\ConstantEditorController\addShortcutButtonToDocHeader(), TYPO3\CMS\Tstemplate\Controller\ActiveTypoScriptController\addShortcutButtonToDocHeader(), TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController\createNewWebsiteTemplateAction(), TYPO3\CMS\Tstemplate\Controller\ActiveTypoScriptController\editAction(), TYPO3\CMS\Tstemplate\Controller\TemplateRecordsOverviewController\handleRequest(), TYPO3\CMS\Tstemplate\Controller\TemplateAnalyzerController\indexAction(), TYPO3\CMS\Tstemplate\Controller\ActiveTypoScriptController\indexAction(), TYPO3\CMS\Tstemplate\Controller\InfoModifyController\mainAction(), TYPO3\CMS\Tstemplate\Controller\InfoModifyController\noTemplateAction(), TYPO3\CMS\Tstemplate\Controller\ConstantEditorController\noTemplateAction(), TYPO3\CMS\Tstemplate\Controller\ConstantEditorController\showAction(), and TYPO3\CMS\Tstemplate\Controller\ActiveTypoScriptController\updateAction().

◆ getScopedRootline()

◆ getTemplateQueryBuilder()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::getTemplateQueryBuilder ( int  $pid)
protected

◆ injectConnectionPool()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::injectConnectionPool ( ConnectionPool  $connectionPool)

◆ injectDataHandler()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::injectDataHandler ( DataHandler  $dataHandler)

◆ injectIconFactory()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::injectIconFactory ( IconFactory  $iconFactory)

◆ injectSiteFinder()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::injectSiteFinder ( SiteFinder  $siteFinder)

◆ injectUriBuilder()

TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::injectUriBuilder ( UriBuilder  $uriBuilder)

Member Data Documentation

◆ $connectionPool

ConnectionPool TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::$connectionPool
protected

◆ $dataHandler

◆ $iconFactory

IconFactory TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::$iconFactory
protected

◆ $siteFinder

SiteFinder TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::$siteFinder
protected

◆ $uriBuilder

UriBuilder TYPO3\CMS\Tstemplate\Controller\AbstractTemplateModuleController::$uriBuilder
protected