public function range_handler_filter_numeric_range::query in Range 7
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.
Overrides views_handler_filter::query
File
- views/
range_handler_filter_numeric_range.inc, line 90 - Contains filter handlers for numeric range filters with views.
Class
- range_handler_filter_numeric_range
- Filter handler for limiting a view to entities which lies within a range.
Code
public function query() {
list($field_from, $field_to) = $this
->get_range_subfields();
$info = $this
->operators();
if (!empty($info[$this->operator]['method'])) {
$this
->{$info[$this->operator]['method']}($field_from, $field_to);
}
}