protected function range_handler_filter_numeric_range::operators in Range 7
Define the operators supported for ranges.
2 calls to range_handler_filter_numeric_range::operators()
- range_handler_filter_numeric_range::operator_options in views/
range_handler_filter_numeric_range.inc - Provide a list of options for the default operator form.
- range_handler_filter_numeric_range::query in views/
range_handler_filter_numeric_range.inc - Add this filter to the query.
File
- views/
range_handler_filter_numeric_range.inc, line 31 - 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 operators() {
$operators = array(
'within' => array(
'title' => t('Range contains'),
'short' => t('range contains'),
'method' => 'op_within',
'values' => 1,
),
'not within' => array(
'title' => t('Range does not contain'),
'short' => t('range does not contain'),
'method' => 'op_within',
'values' => 1,
),
);
return $operators;
}