function 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

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);
}