![]() |
TYPO3
7.6
|
Public Member Functions | |
collectPages ($selectedCategories, $configuration, $parentObject) | |
Static Public Member Functions | |
static | sortPagesUtility ($pageA, $pageB) |
Protected Member Functions | |
sortPages ($pages, $order) | |
Static Protected Attributes | |
static | $sortingField |
Utility class for menus based on category collections of pages.
Returns all the relevant pages for rendering with a menu content object.
Definition at line 26 of file CategoryMenuUtility.php.
collectPages | ( | $selectedCategories, | |
$configuration, | |||
$parentObject | |||
) |
Collects all pages for the selected categories, sorted according to configuration.
string | $selectedCategories | Comma-separated list of system categories primary keys |
array | $configuration | TypoScript configuration for the "special." keyword |
\TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject | $parentObject | Back-reference to the calling object |
Definition at line 41 of file CategoryMenuUtility.php.
References elseif, GeneralUtility\intExplode(), CategoryCollection\load(), and CategoryMenuUtility\sortPages().
|
protected |
Sorts the selected pages
If the sorting field is not defined or does not corresponding to an existing field of the "pages" tables, the list of pages will remain unchanged.
array | $pages | List of selected pages |
string | $order | Order for sorting (should "asc" or "desc") |
Definition at line 105 of file CategoryMenuUtility.php.
Referenced by CategoryMenuUtility\collectPages().
|
static |
Static utility for sorting pages according to the selected criterion
array | $pageA | Record for first page to be compared |
array | $pageB | Record for second page to be compared |
Definition at line 142 of file CategoryMenuUtility.php.
|
staticprotected |
Definition at line 31 of file CategoryMenuUtility.php.