PagesRepository

Class for pages database queries.

Internal

not part of the TYPO3 Core API.

Table of Contents

Constants

TABLE  = 'pages'

Methods

doesRootLineContainHiddenPages()  : bool
Check if rootline contains a hidden page (including current 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

Methods

doesRootLineContainHiddenPages()

Check if rootline contains a hidden page (including current page)

public doesRootLineContainHiddenPages(array<string|int, mixed> $pageInfo[, int $recursionLevel = 0 ]) : bool
Parameters
$pageInfo : array<string|int, mixed>

Array with uid, title, hidden, extendToSubpages from pages table

$recursionLevel : int = 0

starts with 0 on current page and gets incremented with each recursion (when moving up the rootline)

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> = []
Return values
array<string|int, int>

        
On this page

Search results