protected function range_handler_filter_numeric_range::op_within in Range 7
Operation callback.
File
- views/
range_handler_filter_numeric_range.inc, line 102 - 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
protected function op_within($field_from, $field_to) {
$operators = array(
'<',
'>',
'<=',
'>=',
);
$inlude_endpoints = !($this->options['include_endpoints'] xor $this->operator === 'within');
list($op_left, $op_right) = array_slice($operators, $inlude_endpoints ? 2 : 0, 2);
$this
->op_within_query($this->operator, $field_from, $field_to, $op_left, $op_right);
}