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

Public Member Functions

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

Protected Member Functions

 sortSubPagesByField (int $parentPageUid, string $newSortBy)
 
 reverseSortingOfPages (int $parentPageUid)
 
 persistNewSubPageOrder (int $parentPageUid, array $subPages)
 
array getSubPagesOfPage (int $parentPageUid, string $orderBy='sorting')
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 

Protected Attributes

ModuleTemplate $moduleTemplate
 

Detailed Description

"Sort sub pages" controller - reachable from context menu "more" on page records

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

Definition at line 40 of file SortSubPagesController.php.

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getBackendUser()

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

Returns current BE user

Returns
‪BackendUserAuthentication

Definition at line 234 of file SortSubPagesController.php.

References $GLOBALS.

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

◆ getLanguageService()

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

Returns LanguageService

Returns
‪LanguageService

Definition at line 224 of file SortSubPagesController.php.

References $GLOBALS.

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

◆ getSubPagesOfPage()

array TYPO3\CMS\Backend\Controller\Page\SortSubPagesController::getSubPagesOfPage ( int  $parentPageUid,
string  $orderBy = 'sorting' 
)
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$parentPageUid‪Get sub pages from this pages
string$orderBy‪Order pages by this field
Returns
‪array

Definition at line 201 of file SortSubPagesController.php.

Referenced by TYPO3\CMS\Backend\Controller\Page\SortSubPagesController\mainAction(), TYPO3\CMS\Backend\Controller\Page\SortSubPagesController\reverseSortingOfPages(), and TYPO3\CMS\Backend\Controller\Page\SortSubPagesController\sortSubPagesByField().

◆ mainAction()

◆ persistNewSubPageOrder()

TYPO3\CMS\Backend\Controller\Page\SortSubPagesController::persistNewSubPageOrder ( int  $parentPageUid,
array  $subPages 
)
protected

Store new sub page order

Parameters
int$parentPageUid‪Parent page uid
array$subPages‪List of sub pages in new order

Definition at line 181 of file SortSubPagesController.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\setUpdateSignal().

Referenced by TYPO3\CMS\Backend\Controller\Page\SortSubPagesController\reverseSortingOfPages(), and TYPO3\CMS\Backend\Controller\Page\SortSubPagesController\sortSubPagesByField().

◆ reverseSortingOfPages()

TYPO3\CMS\Backend\Controller\Page\SortSubPagesController::reverseSortingOfPages ( int  $parentPageUid)
protected

◆ sortSubPagesByField()

TYPO3\CMS\Backend\Controller\Page\SortSubPagesController::sortSubPagesByField ( int  $parentPageUid,
string  $newSortBy 
)
protected

Sort sub pages of given uid by field name alphabetically

Parameters
int$parentPageUid‪Parent page uid
string$newSortBy‪Field name to sort by
Exceptions

Definition at line 147 of file SortSubPagesController.php.

References TYPO3\CMS\Backend\Controller\Page\SortSubPagesController\getSubPagesOfPage(), and TYPO3\CMS\Backend\Controller\Page\SortSubPagesController\persistNewSubPageOrder().

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

Member Data Documentation

◆ $moduleTemplate

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

ModuleTemplate object

Constructor Method

Definition at line 46 of file SortSubPagesController.php.

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