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

Public Member Functions

 __construct (protected readonly IconFactory $iconFactory, protected readonly ModuleTemplateFactory $moduleTemplateFactory,)
 
 mainAction (ServerRequestInterface $request)
 

Protected Member Functions

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

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 42 of file SortSubPagesController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\Page\SortSubPagesController::__construct ( protected readonly IconFactory  $iconFactory,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory 
)

Definition at line 44 of file SortSubPagesController.php.

Member Function Documentation

◆ getBackendUser()

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

◆ getLanguageService()

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

◆ getSubPagesOfPage()

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

Definition at line 181 of file SortSubPagesController.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT.

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 162 of file SortSubPagesController.php.

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 128 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().