‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController Class Reference

Public Member Functions

 __construct (ModuleTemplate $moduleTemplate=null)
 
ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

bool createPages (array $newPagesData, int $pageUid, bool $afterExisting, bool $hidePages, bool $hidePagesInMenu)
 
array getTypeSelectData (int $pageUid)
 
array getSubPagesOfPage (int $pageUid)
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

ModuleTemplate $moduleTemplate
 

Detailed Description

"Create multiple pages" controller

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

Definition at line 42 of file NewMultiplePagesController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController::__construct ( ModuleTemplate  $moduleTemplate = null)

Member Function Documentation

◆ createPages()

bool TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController::createPages ( array  $newPagesData,
int  $pageUid,
bool  $afterExisting,
bool  $hidePages,
bool  $hidePagesInMenu 
)
protected

Persist new pages in DB

Parameters
array$newPagesData‪Data array with title and page type
int$pageUid‪Uid of page new pages should be added in
bool$afterExisting‪True if new pages should be created after existing pages
bool$hidePages‪True if new pages should be set to hidden
bool$hidePagesInMenu‪True if new pages should be set to hidden in menu
Returns
‪bool TRUE if at least on pages has been added

Definition at line 148 of file NewMultiplePagesController.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger(), TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController\getSubPagesOfPage(), and TYPO3\CMS\Backend\Utility\BackendUtility\setUpdateSignal().

Referenced by TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController\mainAction().

◆ getBackendUser()

BackendUserAuthentication TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController::getBackendUser ( )
protected

◆ getLanguageService()

LanguageService TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController::getLanguageService ( )
protected

Returns LanguageService

Returns
‪LanguageService

Definition at line 273 of file NewMultiplePagesController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController\mainAction().

◆ getSubPagesOfPage()

array TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController::getSubPagesOfPage ( int  $pageUid)
protected

Get a list of sub pages with some all fields from given page. Fetch all data fields for full page icon display

Parameters
int$pageUid‪Get sub pages from this pages
Returns
‪array

Definition at line 247 of file NewMultiplePagesController.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController\createPages(), and TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController\mainAction().

◆ getTypeSelectData()

array TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController::getTypeSelectData ( int  $pageUid)
protected

◆ mainAction()

Member Data Documentation

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController::$moduleTemplate
protected

ModuleTemplate object

Constructor Method

Definition at line 48 of file NewMultiplePagesController.php.

Referenced by TYPO3\CMS\Backend\Controller\Page\NewMultiplePagesController\__construct().