PagesRepository

class \TYPO3\CMS\Linkvalidator\Repository\PagesRepository

Class for pages database queries.

Table of Contents

Constants

TABLE  : mixed = 'pages'

Methods

doesRootLineContainHiddenPages()  : bool
Check if rootline contains a hidden page (including current page)
getAllSubpagesForPage()  : int[]
Generates a list of page uids from $id. List does not include $id itself.
getTranslationForPage()  : int[]
Add page translations to list of pages

Constants

Methods

doesRootLineContainHiddenPages()

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

public doesRootLineContainHiddenPages(array $pageInfo[, int $recursionLevel = 0 ]) : bool

Parameters

$pageInfo : array

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 ]) : 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

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[, int[] $limitToLanguageIds = [] ]) : int[]

Formerly called addPageTranslationsToPageList

Parameters

$currentPage : int
$permsClause : string
$considerHiddenPages : bool
$limitToLanguageIds : int[] = []

Return values

int[]
On this page