public function getFiltersFromUidList($filterUids)
    {
        if (empty($filterUids)) {
            return array();
        }

        // @Todo quotes ($this->startingPoints, filterUids)
        $table = 'tx_kesearch_filters';
        $where = 'pid in (' . $this->startingPoints . ')';
        $where .= ' AND find_in_set(uid, "' . $filterUids . '")';

        $queryBuilder = Db::getQueryBuilder('tx_kesearch_filters');
        $filterQuery = $queryBuilder
            ->select('*')
            ->from($table)
            ->add('where', $where)
            ->add('orderBy', 'find_in_set(uid, "' . $filterUids . '")')
            ->execute();

        $filterRows = [];
        while ($row = $filterQuery->fetch()) {
            $filterRows[$row['uid']] = $row;
        }

        $filterRows = $this->languageOverlay($filterRows, $table);
        return $this->addOptionsToFilters($filterRows);
    }
public function getFiltersFromUidList($filterUids)
    {
        if (empty($filterUids)) {
            return array();
        }

        // @Todo quotes ($this->startingPoints, filterUids)
        $table = 'tx_kesearch_filters';
        $where = 'pid in (' . $this->startingPoints . ')';
        $where .= ' AND find_in_set(uid, "' . $filterUids . '")';

        $queryBuilder = Db::getQueryBuilder('tx_kesearch_filters');
        $filterQuery = $queryBuilder
            ->select('*')
            ->from($table)
            ->add('where', $where)
            ->add('orderBy', 'find_in_set(uid, "' . $filterUids . '")')
            ->execute();

        $filterRows = [];
        while ($row = $filterQuery->fetch()) {
            $filterRows[$row['uid']] = $row;
        }

        $filterRows = $this->languageOverlay($filterRows, $table);
        return $this->addOptionsToFilters($filterRows);
    }
public function getFiltersFromUidList ( $ filterUids ) { if ( empty ( $ filterUids ) ) { return array ( ) ; } // @Todo quotes ($this->startingPoints, filterUids) $ table = 'tx_kesearch_filters' ; $ where = 'pid in (' . $ this -> startingPoints . ')' ; $ where .= ' AND find_in_set(uid, "' . $ filterUids . '")' ; $ queryBuilder = Db :: getQueryBuilder ( 'tx_kesearch_filters' ) ; $ filterQuery = $ queryBuilder -> select ( '*' ) -> from ( $ table ) -> add ( 'where' , $ where ) -> add ( 'orderBy' , 'find_in_set(uid, "' . $ filterUids . '")' ) -> execute ( ) ; $ filterRows = [ ] ; while ( $ row = $ filterQuery -> fetch ( ) ) { $ filterRows [ $ row [ 'uid' ] ] = $ row ; } $ filterRows = $ this -> languageOverlay ( $ filterRows , $ table ) ; return $ this -> addOptionsToFilters ( $ filterRows ) ; }
get the filter records from DB which are configured in FlexForm

@param string $filterUids A commaseperated list of filter uids
@return array Array with filter records
get the filter records from DB which are configured in FlexForm