public function getOptionsFromUidList($optionUids)
    {
        if (empty($optionUids)) {
            return array();
        }

        // @Todo quotes ($optionsUids, $this->startingPoints)
        $table = 'tx_kesearch_filteroptions';
        $where = 'FIND_IN_SET(uid, "' . $optionUids . '")';
        $where .= ' AND pid in (' . $this->startingPoints . ')';

        $queryBuilder = Db::getQueryBuilder('tx_kesearch_filteroptions');
        $optionsQuery = $queryBuilder
            ->select('*')
            ->from($table)
            ->add('where', $where)
            ->add('orderBy', 'FIND_IN_SET(uid, "' . $optionUids . '")')
            ->execute();

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

        return $this->languageOverlay(
            $optionsRows,
            $table
        );
    }
public function getOptionsFromUidList($optionUids)
    {
        if (empty($optionUids)) {
            return array();
        }

        // @Todo quotes ($optionsUids, $this->startingPoints)
        $table = 'tx_kesearch_filteroptions';
        $where = 'FIND_IN_SET(uid, "' . $optionUids . '")';
        $where .= ' AND pid in (' . $this->startingPoints . ')';

        $queryBuilder = Db::getQueryBuilder('tx_kesearch_filteroptions');
        $optionsQuery = $queryBuilder
            ->select('*')
            ->from($table)
            ->add('where', $where)
            ->add('orderBy', 'FIND_IN_SET(uid, "' . $optionUids . '")')
            ->execute();

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

        return $this->languageOverlay(
            $optionsRows,
            $table
        );
    }
public function getOptionsFromUidList ( $ optionUids ) { if ( empty ( $ optionUids ) ) { return array ( ) ; } // @Todo quotes ($optionsUids, $this->startingPoints) $ table = 'tx_kesearch_filteroptions' ; $ where = 'FIND_IN_SET(uid, "' . $ optionUids . '")' ; $ where .= ' AND pid in (' . $ this -> startingPoints . ')' ; $ queryBuilder = Db :: getQueryBuilder ( 'tx_kesearch_filteroptions' ) ; $ optionsQuery = $ queryBuilder -> select ( '*' ) -> from ( $ table ) -> add ( 'where' , $ where ) -> add ( 'orderBy' , 'FIND_IN_SET(uid, "' . $ optionUids . '")' ) -> execute ( ) ; $ optionsRows = [ ] ; while ( $ row = $ optionsQuery -> fetch ( ) ) { $ optionsRows [ $ row [ 'uid' ] ] = $ row ; } return $ this -> languageOverlay ( $ optionsRows , $ table ) ; }
get the option records from DB which are configured as commaseperate list within the filter records
@param string $optionUids A commaseperated list of option uids
@return array Array with option records
get the option records from DB which are configured as commaseperate list within the filter records