You are here

public function similar_handler_filter_similarity::query in Similar Entries 6.2

Same name and namespace in other branches
  1. 7.2 views/similar_handler_filter_similarity.inc \similar_handler_filter_similarity::query()

Inserts a having clause into the query.

File

views/similar_handler_filter_similarity.inc, line 41
Defines the score filter handler for Similar entries module.

Class

similar_handler_filter_similarity
Defines the score filter handler.

Code

public function query() {
  $this
    ->ensure_my_table();
  $this->query
    ->add_having('nid', "score {$this->operator} (%d)", $this->value);
}