TemplateAnalyzerController extends AbstractTemplateModuleController
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.
Attributes
- #[AsController]
Table of Contents
Properties
Methods
- __construct() : mixed
- indexAction() : ResponseInterface
- injectConnectionPool() : mixed
- injectDataHandler() : mixed
- injectIconFactory() : void
- injectUriBuilder() : mixed
- sourceAction() : ResponseInterface
- sourceWithIncludesAction() : ResponseInterface
- addPreviewButtonToDocHeader() : void
- createExtensionTemplateAction() : ResponseInterface
- Action shared by info/modify ond constant editor to create a new "extension template"
- createNewWebsiteTemplateAction() : ResponseInterface
- Action shared by info/modify ond constant editor to create a new "site template"
- getAllTemplateRecordsOnPage() : array<string|int, mixed>
- Get an array of all template records on a page.
- getBackendUser() : BackendUserAuthentication
- getClosestAncestorPageWithTemplateRecord() : array<string|int, mixed>
- Get the closest page row that has a template up in rootline
- getFirstTemplateRecordOnPage() : array<string, mixed>|false
- Get a single sys_template record attached to a single page.
- getLanguageService() : LanguageService
- getTemplateQueryBuilder() : QueryBuilder
- Helper method to prepare the query builder for getting sys_template records from a given pid.
Properties
$connectionPool
protected
ConnectionPool
$connectionPool
$iconFactory
protected
IconFactory
$iconFactory
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(ModuleTemplateFactory $moduleTemplateFactory, SysTemplateRepository $sysTemplateRepository, IncludeTreeTraverser $treeTraverser, ConditionVerdictAwareIncludeTreeTraverser $treeTraverserConditionVerdictAware, SysTemplateTreeBuilder $treeBuilder, LosslessTokenizer $losslessTokenizer, ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory) : mixed
Parameters
- $moduleTemplateFactory : ModuleTemplateFactory
- $sysTemplateRepository : SysTemplateRepository
- $treeTraverser : IncludeTreeTraverser
- $treeTraverserConditionVerdictAware : ConditionVerdictAwareIncludeTreeTraverser
- $treeBuilder : SysTemplateTreeBuilder
- $losslessTokenizer : LosslessTokenizer
- $responseFactory : ResponseFactoryInterface
- $streamFactory : StreamFactoryInterface
indexAction()
public
indexAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceinjectConnectionPool()
public
injectConnectionPool(ConnectionPool $connectionPool) : mixed
Parameters
- $connectionPool : ConnectionPool
injectDataHandler()
public
injectDataHandler(DataHandler $dataHandler) : mixed
Parameters
- $dataHandler : DataHandler
injectIconFactory()
public
injectIconFactory(IconFactory $iconFactory) : void
Parameters
- $iconFactory : IconFactory
injectUriBuilder()
public
injectUriBuilder(UriBuilder $uriBuilder) : mixed
Parameters
- $uriBuilder : UriBuilder
sourceAction()
public
sourceAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacesourceWithIncludesAction()
public
sourceWithIncludesAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfaceaddPreviewButtonToDocHeader()
protected
addPreviewButtonToDocHeader(ModuleTemplate $view, int $pageId, int $dokType) : void
Parameters
- $view : ModuleTemplate
- $pageId : int
- $dokType : int
createExtensionTemplateAction()
Action shared by info/modify ond constant editor to create a new "extension template"
protected
createExtensionTemplateAction(ServerRequestInterface $request, string $redirectTarget) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $redirectTarget : string
Return values
ResponseInterfacecreateNewWebsiteTemplateAction()
Action shared by info/modify ond constant editor to create a new "site template"
protected
createNewWebsiteTemplateAction(ServerRequestInterface $request, string $redirectTarget) : ResponseInterface
Parameters
- $request : ServerRequestInterface
- $redirectTarget : string
Return values
ResponseInterfacegetAllTemplateRecordsOnPage()
Get an array of all template records on a page.
protected
getAllTemplateRecordsOnPage(int $pageId) : array<string|int, mixed>
Parameters
- $pageId : int
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetClosestAncestorPageWithTemplateRecord()
Get the closest page row that has a template up in rootline
protected
getClosestAncestorPageWithTemplateRecord(int $pageId) : array<string|int, mixed>
Parameters
- $pageId : int
Return values
array<string|int, mixed>getFirstTemplateRecordOnPage()
Get a single sys_template record attached to a single page.
protected
getFirstTemplateRecordOnPage(int $pageId[, int $templateUid = 0 ]) : array<string, mixed>|false
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
- $pageId : int
-
The pid to select sys_template records from
- $templateUid : int = 0
-
Optional template uid
Return values
array<string, mixed>|false —Returns the template record or false if none was found
getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetTemplateQueryBuilder()
Helper method to prepare the query builder for getting sys_template records from a given pid.
protected
getTemplateQueryBuilder(int $pid) : QueryBuilder
Parameters
- $pid : int