1 views_handler_filter_numeric.inc | views_handler_filter_numeric::op_between($field) |
File
- core/
modules/ views/ handlers/ views_handler_filter_numeric.inc, line 248 - Definition of views_handler_filter_numeric.
Class
- views_handler_filter_numeric
- Simple filter to handle greater than/less than filters
Code
function op_between($field) {
if ($this->operator == 'between') {
$this->query->add_where($this->options['group'], $field, array($this->value['min'], $this->value['max']), 'BETWEEN');
}
else {
$this->query->add_where($this->options['group'], db_or()->condition($field, $this->value['min'], '<=')->condition($field, $this->value['max'], '>='));
}
}