NewMultiplePagesController
"Create multiple pages" controller
This class 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
- mainAction() : ResponseInterface
- Main function Handling input variables and rendering main view.
- createPages() : bool
- Persist new pages in DB
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : 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 read-only
protected
IconFactory
$iconFactory
$moduleTemplateFactory read-only
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
ResponseInterfacecreatePages()
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()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
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