‪TYPO3CMS  ‪main
TYPO3\CMS\Linkvalidator\Repository\PagesRepository Class Reference

Public Member Functions

bool doesRootLineContainHiddenPages (array $pageInfo, int $recursionLevel=0)
 
int[] getAllSubpagesForPage (int $id, int $depth, string $permsClause, bool $considerHidden=false)
 
int[] getTranslationForPage (int $currentPage, string $permsClause, bool $considerHiddenPages, array $limitToLanguageIds=[])
 

Protected Attributes

const TABLE = 'pages'
 

Detailed Description

Class for pages database queries.

not part of the TYPO3 Core API.

Definition at line 32 of file PagesRepository.php.

Member Function Documentation

◆ doesRootLineContainHiddenPages()

bool TYPO3\CMS\Linkvalidator\Repository\PagesRepository::doesRootLineContainHiddenPages ( array  $pageInfo,
int  $recursionLevel = 0 
)

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

Parameters
array$pageInfo‪Array with uid, title, hidden, extendToSubpages from pages table
int$recursionLevel‪starts with 0 on current page and gets incremented with each recursion (when moving up the rootline)
Returns
‪bool TRUE if rootline contains a hidden page, FALSE if not

Definition at line 43 of file PagesRepository.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT.

◆ getAllSubpagesForPage()

int [] TYPO3\CMS\Linkvalidator\Repository\PagesRepository::getAllSubpagesForPage ( int  $id,
int  $depth,
string  $permsClause,
bool  $considerHidden = false 
)

Generates a list of page uids from $id. List does not include $id itself. The only pages excluded from the list are deleted pages.

Formerly called extGetTreeList

Parameters
int$id‪Start page id
int$depth‪Depth to traverse down the page tree.
string$permsClause‪Perms clause
bool$considerHidden‪Whether to consider hidden pages or not
Returns
‪int[] Returns the list of subpages (if any pages selected!)

Definition at line 93 of file PagesRepository.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT, and TYPO3\CMS\Core\Database\Query\QueryHelper\stripLogicalOperatorPrefix().

◆ getTranslationForPage()

int [] TYPO3\CMS\Linkvalidator\Repository\PagesRepository::getTranslationForPage ( int  $currentPage,
string  $permsClause,
bool  $considerHiddenPages,
array  $limitToLanguageIds = [] 
)

Add page translations to list of pages

Formerly called addPageTranslationsToPageList

Parameters
int$currentPage
string$permsClause
bool$considerHiddenPages
int[]$limitToLanguageIds
Returns
‪int[]

Definition at line 151 of file PagesRepository.php.

References TYPO3\CMS\Core\Database\Connection\PARAM_INT, TYPO3\CMS\Core\Database\Connection\PARAM_INT_ARRAY, and TYPO3\CMS\Core\Database\Query\QueryHelper\stripLogicalOperatorPrefix().

Member Data Documentation

◆ TABLE

const TYPO3\CMS\Linkvalidator\Repository\PagesRepository::TABLE = 'pages'
protected

Definition at line 34 of file PagesRepository.php.