SortSubPagesController
"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.
Attributes
- #[AsController]
Table of Contents
Properties
Methods
- __construct() : mixed
- mainAction() : ResponseInterface
- Main function Handling input variables and rendering main view.
- getBackendUser() : BackendUserAuthentication
- getLanguageService() : LanguageService
- getSubPagesOfPage() : array<string|int, mixed>
- Get a list of sub pages with some all fields from given page.
- persistNewSubPageOrder() : mixed
- Store new sub page order
- reverseSortingOfPages() : mixed
- Reverse current sorting of sub pages
- sortSubPagesByField() : mixed
- Sort sub pages of given uid by field name alphabetically
Properties
$iconFactory read-only
protected
IconFactory
$iconFactory
$moduleTemplateFactory read-only
protected
ModuleTemplateFactory
$moduleTemplateFactory
Methods
__construct()
public
__construct(IconFactory $iconFactory, ModuleTemplateFactory $moduleTemplateFactory) : mixed
Parameters
- $iconFactory : IconFactory
- $moduleTemplateFactory : ModuleTemplateFactory
mainAction()
Main function Handling input variables and rendering main view.
public
mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacegetBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetSubPagesOfPage()
Get a list of sub pages with some all fields from given page.
protected
getSubPagesOfPage(int $parentPageUid[, string $orderBy = 'sorting' ]) : array<string|int, mixed>
Fetch all data fields for full page icon display
Parameters
- $parentPageUid : int
-
Get sub pages from this pages
- $orderBy : string = 'sorting'
-
Order pages by this field
Return values
array<string|int, mixed>persistNewSubPageOrder()
Store new sub page order
protected
persistNewSubPageOrder(int $parentPageUid, array<string|int, mixed> $subPages) : mixed
Parameters
- $parentPageUid : int
-
Parent page uid
- $subPages : array<string|int, mixed>
-
List of sub pages in new order
reverseSortingOfPages()
Reverse current sorting of sub pages
protected
reverseSortingOfPages(int $parentPageUid) : mixed
Parameters
- $parentPageUid : int
-
Parent page uid
sortSubPagesByField()
Sort sub pages of given uid by field name alphabetically
protected
sortSubPagesByField(int $parentPageUid, string $newSortBy) : mixed
Parameters
- $parentPageUid : int
-
Parent page uid
- $newSortBy : string
-
Field name to sort by