TemplateAnalyzerController extends AbstractTemplateModuleController

FinalYes

TypoScript template analyzer.

Show TypoScript constants and setup include tree of current page.

Internal

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

Attributes
#[AsController]

Table of Contents

Properties

$connectionPool  : ConnectionPool
$iconFactory  : IconFactory
$uriBuilder  : UriBuilder

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

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
ResponseInterface

sourceAction()

public sourceAction(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

sourceWithIncludesAction()

public sourceWithIncludesAction(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

addPreviewButtonToDocHeader()

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
ResponseInterface

createNewWebsiteTemplateAction()

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
ResponseInterface

getAllTemplateRecordsOnPage()

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>

getClosestAncestorPageWithTemplateRecord()

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

getTemplateQueryBuilder()

Helper method to prepare the query builder for getting sys_template records from a given pid.

protected getTemplateQueryBuilder(int $pid) : QueryBuilder
Parameters
$pid : int
Return values
QueryBuilder

        
On this page

Search results