protected function getPageUids(int $pid = 1, int $recursion = 99, string $exclude = '') {
    $exclude       = $exclude === '-' ? '' : $exclude;
    $exclude       = GeneralUtility::intExplode(',', $exclude, true);
    $pagesTreeList = $this->queryGenerator->getTreeList($pid, $recursion, 0, 1);
    $pageUids      = GeneralUtility::intExplode(',', $pagesTreeList, true);
    $pageUids      = array_diff($pageUids, $exclude);

    return $pageUids;
  }
protected function getPageUids(int $pid = 1, int $recursion = 99, string $exclude = '') {
    $exclude       = $exclude === '-' ? '' : $exclude;
    $exclude       = GeneralUtility::intExplode(',', $exclude, true);
    $pagesTreeList = $this->queryGenerator->getTreeList($pid, $recursion, 0, 1);
    $pageUids      = GeneralUtility::intExplode(',', $pagesTreeList, true);
    $pageUids      = array_diff($pageUids, $exclude);

    return $pageUids;
  }
protected function getPageUids ( int $ pid = 1 , int $ recursion = 99 , string $ exclude = '' ) { $ exclude = $ exclude === '-' ? '' : $ exclude ; $ exclude = GeneralUtility :: intExplode ( ',' , $ exclude , true ) ; $ pagesTreeList = $ this -> queryGenerator -> getTreeList ( $ pid , $ recursion , 0 , 1 ) ; $ pageUids = GeneralUtility :: intExplode ( ',' , $ pagesTreeList , true ) ; $ pageUids = array_diff ( $ pageUids , $ exclude ) ; return $ pageUids ; }
Gets page UIDs.

@param int $pid The optional PID of the page to search from, defaults to `1`
@param int $recursion The optional recursion, defaults to `99`
@param string $exclude The optional UIDs of pages to exclude from as string, seperated by `,`, empty by default
Gets page UIDs .