AbstractTemplateModuleController

AbstractYes

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

Internal

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

Table of Contents

Properties

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

Methods

injectConnectionPool()  : mixed
injectDataHandler()  : mixed
injectIconFactory()  : void
injectUriBuilder()  : mixed
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

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