NewMultiplePagesController

class \TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController

"Create multiple pages" controller

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
Get a list of sub pages with some all fields from given page.
getTypeSelectData()  : array
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 —

Response

createPages()

Persist new pages in DB

protected createPages(array $newPagesData, int $pageUid, bool $afterExisting, bool $hidePages, bool $hidePagesInMenu) : bool

Parameters

$newPagesData : array

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

Fetch all data fields for full page icon display

Parameters

$pageUid : int

Get sub pages from this pages

Return values

array

getTypeSelectData()

Page selector type data

protected getTypeSelectData(int $pageUid) : array

Parameters

$pageUid : int

Page Uid

Return values

array
On this page