NewMultiplePagesController
"Create multiple pages" controller
This class is a specific Backend controller implementation and is not considered part of the Public TYPO3 API.
Table of Contents
Properties
- $iconFactory : IconFactory
- $moduleTemplate : ModuleTemplate
- ModuleTemplate object
- $moduleTemplateFactory : ModuleTemplateFactory
Methods
- __construct() : mixed
- mainAction() : ResponseInterface
- Main function Handling input variables and rendering main view
- createPages() : bool
- Persist new pages in DB
- getBackendUser() : BackendUserAuthentication
- Returns current BE user
- getLanguageService() : LanguageService
- Returns LanguageService
- getSubPagesOfPage() : array<string|int, mixed>
- Get a list of sub pages with some all fields from given page.
- getTypeSelectData() : array<string|int, mixed>
- Page selector type data
Properties
$iconFactory
protected
IconFactory
$iconFactory
$moduleTemplate
ModuleTemplate object
protected
ModuleTemplate
$moduleTemplate
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
Methods
__construct()
public
__construct(IconFactory $iconFactory, ModuleTemplateFactory $moduleTemplateFactory) : mixed
Parameters
- $iconFactory : IconFactory
- $moduleTemplateFactory : ModuleTemplateFactory
mainAction()
Main function Handling input variables and rendering main view
public
mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterface —Response
createPages()
Persist new pages in DB
protected
createPages(array<string|int, mixed> $newPagesData, int $pageUid, bool $afterExisting, bool $hidePages, bool $hidePagesInMenu) : bool
Parameters
- $newPagesData : array<string|int, mixed>
-
Data array with title and page type
- $pageUid : int
-
Uid of page new pages should be added in
- $afterExisting : bool
-
True if new pages should be created after existing pages
- $hidePages : bool
-
True if new pages should be set to hidden
- $hidePagesInMenu : bool
-
True if new pages should be set to hidden in menu
Return values
bool —TRUE if at least on pages has been added
getBackendUser()
Returns current BE user
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
Returns LanguageService
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetSubPagesOfPage()
Get a list of sub pages with some all fields from given page.
protected
getSubPagesOfPage(int $pageUid) : array<string|int, mixed>
Fetch all data fields for full page icon display
Parameters
- $pageUid : int
-
Get sub pages from this pages
Return values
array<string|int, mixed>getTypeSelectData()
Page selector type data
protected
getTypeSelectData(int $pageUid) : array<string|int, mixed>
Parameters
- $pageUid : int
-
Page Uid