You are here

public function views_handler_filter::query in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_filter.inc \views_handler_filter::query()
  2. 6.2 handlers/views_handler_filter.inc \views_handler_filter::query()

Add this filter to the query.

Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.

12 methods override views_handler_filter::query()
views_handler_filter_boolean_operator::query in handlers/views_handler_filter_boolean_operator.inc
Add this filter to the query.
views_handler_filter_broken::query in handlers/views_handler_filter.inc
Add this filter to the query.
views_handler_filter_fields_compare::query in handlers/views_handler_filter_fields_compare.inc
Add this filter to the query.
views_handler_filter_history_user_timestamp::query in modules/node/views_handler_filter_history_user_timestamp.inc
Add this filter to the query.
views_handler_filter_in_operator::query in handlers/views_handler_filter_in_operator.inc
Add this filter to the query.

... See full list

File

handlers/views_handler_filter.inc, line 1490
Definitions of views_handler_filter and views_handler_filter_broken.

Class

views_handler_filter
Base class for filters.

Code

public function query() {
  $this
    ->ensure_my_table();
  $this->query
    ->add_where($this->options['group'], "{$this->table_alias}.{$this->real_field}", $this->value, $this->operator);
}