SortSubPagesController

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

Internal

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

Attributes
#[AsController]

Table of Contents

Properties

$iconFactory  : IconFactory
$moduleTemplateFactory  : ModuleTemplateFactory

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

Methods

mainAction()

Main function Handling input variables and rendering main view.

public mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Return values
ResponseInterface

getSubPagesOfPage()

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

Tags
throws
RuntimeException

If $newSortBy does not validate


        
On this page

Search results