NewMultiplePagesController

"Create multiple pages" controller

Internal

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

Attributes
#[AsController]

Table of Contents

Properties

$iconFactory  : IconFactory
$moduleTemplateFactory  : ModuleTemplateFactory
$selectItemProcessor  : SelectItemProcessor

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

Methods

mainAction()

Main function Handling input variables and rendering main view.

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

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

getSubPagesOfPage()

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
Return values
array<string|int, mixed>

        
On this page

Search results