public function getPidList($startingPointsRecursive = '', $singlePages = '', $table = 'pages')
    {
        // get all pages. Regardless if they are shortcut, sysfolder or external link
        $indexPids = $this->getPagelist($startingPointsRecursive, $singlePages);

        // add complete page record to list of pids in $indexPids
        $queryBuilder = Db::getQueryBuilder('tx_kesearch_index');
        $where = $queryBuilder->quoteIdentifier($table)
            . '.' . $queryBuilder->quoteIdentifier('pid')
            . ' = ' . $queryBuilder->quoteIdentifier('pages')
            . '.' . $queryBuilder->quoteIdentifier('uid');
        $this->pageRecords = $this->getPageRecords($indexPids, $where, 'pages,' . $table, 'pages.*');
        if (count($this->pageRecords)) {
            // create a new list of allowed pids
            return array_keys($this->pageRecords);
        } else {
            return array('0' => 0);
        }
    }
public function getPidList($startingPointsRecursive = '', $singlePages = '', $table = 'pages')
    {
        // get all pages. Regardless if they are shortcut, sysfolder or external link
        $indexPids = $this->getPagelist($startingPointsRecursive, $singlePages);

        // add complete page record to list of pids in $indexPids
        $queryBuilder = Db::getQueryBuilder('tx_kesearch_index');
        $where = $queryBuilder->quoteIdentifier($table)
            . '.' . $queryBuilder->quoteIdentifier('pid')
            . ' = ' . $queryBuilder->quoteIdentifier('pages')
            . '.' . $queryBuilder->quoteIdentifier('uid');
        $this->pageRecords = $this->getPageRecords($indexPids, $where, 'pages,' . $table, 'pages.*');
        if (count($this->pageRecords)) {
            // create a new list of allowed pids
            return array_keys($this->pageRecords);
        } else {
            return array('0' => 0);
        }
    }
public function getPidList ( $ startingPointsRecursive = '' , $ singlePages = '' , $ table = 'pages' ) { // get all pages. Regardless if they are shortcut, sysfolder or external link $ indexPids = $ this -> getPagelist ( $ startingPointsRecursive , $ singlePages ) ; // add complete page record to list of pids in $indexPids $ queryBuilder = Db :: getQueryBuilder ( 'tx_kesearch_index' ) ; $ where = $ queryBuilder -> quoteIdentifier ( $ table ) . '.' . $ queryBuilder -> quoteIdentifier ( 'pid' ) . ' = ' . $ queryBuilder -> quoteIdentifier ( 'pages' ) . '.' . $ queryBuilder -> quoteIdentifier ( 'uid' ) ; $ this -> pageRecords = $ this -> getPageRecords ( $ indexPids , $ where , 'pages,' . $ table , 'pages.*' ) ; if ( count ( $ this -> pageRecords ) ) { // create a new list of allowed pids return array_keys ( $ this -> pageRecords ) ; } else { return array ( '0' => 0 ) ; } }
get a list of pids
@param string $startingPointsRecursive
@param string $singlePages
@param string $table
@return array Array containing uids of pageRecords
Todo enable fields
get a list of pids