SortSubPagesController

class \TYPO3\CMS\Backend\Controller\Page\SortSubPagesController

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

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
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

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

persistNewSubPageOrder()

Store new sub page order

protected persistNewSubPageOrder(int $parentPageUid, array $subPages) : mixed

Parameters

$parentPageUid : int

Parent page uid

$subPages : array

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