protected function createQueryForTags(array $tags)
    {
        $databaseConnection = self::getDatabaseConnection('tx_kesearch_index');
        $where = '';
        if (count($tags) && is_array($tags)) {
            foreach ($tags as $value) {
                // @TODO: check if this works as intended / search for better way
                $value = $databaseConnection->quote($value);
                $value = rtrim($value, "'");
                $value = ltrim($value, "'");
                $where .= ' AND MATCH (tags) AGAINST (\'' . $value . '\' IN BOOLEAN MODE) ';
            }
            return $where;
        }
        return '';
    }
protected function createQueryForTags(array $tags)
    {
        $databaseConnection = self::getDatabaseConnection('tx_kesearch_index');
        $where = '';
        if (count($tags) && is_array($tags)) {
            foreach ($tags as $value) {
                // @TODO: check if this works as intended / search for better way
                $value = $databaseConnection->quote($value);
                $value = rtrim($value, "'");
                $value = ltrim($value, "'");
                $where .= ' AND MATCH (tags) AGAINST (\'' . $value . '\' IN BOOLEAN MODE) ';
            }
            return $where;
        }
        return '';
    }
protected function createQueryForTags ( array $ tags ) { $ databaseConnection = self :: getDatabaseConnection ( 'tx_kesearch_index' ) ; $ where = '' ; if ( count ( $ tags ) && is_array ( $ tags ) ) { foreach ( $ tags as $ value ) { // @TODO: check if this works as intended / search for better way $ value = $ databaseConnection -> quote ( $ value ) ; $ value = rtrim ( $ value , "'" ) ; $ value = ltrim ( $ value , "'" ) ; $ where .= ' AND MATCH (tags) AGAINST (\'' . $ value . '\' IN BOOLEAN MODE) ' ; } return $ where ; } return '' ; }
In checkbox mode we have to create for each checkbox one MATCH-AGAINST-Construct
So this function returns the complete WHERE-Clause for each tag

@param array $tags
@return string Query
In checkbox mode we have to create for each checkbox one MATCH - AGAINST - Construct So this function returns the complete WHERE - Clause for each tag