PagesRepository
Class for pages database queries.
not part of the TYPO3 Core API.
Table of Contents
Constants
- TABLE = 'pages'
Methods
- doesRootLineContainHiddenPages() : bool
- Check if rootline contains a hidden page
- getAllSubpagesForPage() : array<string|int, int>
- Generates a list of page uids from $id. List does not include $id itself.
- getTranslationForPage() : array<string|int, int>
- Add page translations to list of pages
Constants
TABLE
protected
mixed
TABLE
= 'pages'
Methods
doesRootLineContainHiddenPages()
Check if rootline contains a hidden page
public
doesRootLineContainHiddenPages(array<string|int, mixed> $pageInfo) : bool
Parameters
- $pageInfo : array<string|int, mixed>
-
Array with uid, title, hidden, extendToSubpages from pages table
Return values
bool —TRUE if rootline contains a hidden page, FALSE if not
getAllSubpagesForPage()
Generates a list of page uids from $id. List does not include $id itself.
public
getAllSubpagesForPage(int $id, int $depth, string $permsClause[, bool $considerHidden = false ]) : array<string|int, int>
The only pages excluded from the list are deleted pages.
Formerly called extGetTreeList
Parameters
- $id : int
-
Start page id
- $depth : int
-
Depth to traverse down the page tree.
- $permsClause : string
-
Perms clause
- $considerHidden : bool = false
-
Whether to consider hidden pages or not
Return values
array<string|int, int> —Returns the list of subpages (if any pages selected!)
getTranslationForPage()
Add page translations to list of pages
public
getTranslationForPage(int $currentPage, string $permsClause, bool $considerHiddenPages[, array<string|int, int> $limitToLanguageIds = [] ]) : array<string|int, int>
Formerly called addPageTranslationsToPageList
Parameters
- $currentPage : int
- $permsClause : string
- $considerHiddenPages : bool
- $limitToLanguageIds : array<string|int, int> = []