function efq_views_handler_filter_numeric::operators in EntityFieldQuery Views Backend 7
We don't support every operator from the parent class ("not between", for example), hence the need to define only the operators we do support.
Overrides views_handler_filter_numeric::operators
1 call to efq_views_handler_filter_numeric::operators()
- efq_views_handler_filter_numeric::query in handlers/
efq_views_handler_filter_numeric.inc - Add this filter to the query.
File
- handlers/
efq_views_handler_filter_numeric.inc, line 8
Class
Code
function operators() {
$operators = array(
'<' => array(
'title' => t('Is less than'),
'method' => 'op_simple',
'short' => t('<'),
'values' => 1,
),
'<=' => array(
'title' => t('Is less than or equal to'),
'method' => 'op_simple',
'short' => t('<='),
'values' => 1,
),
'=' => array(
'title' => t('Is equal to'),
'method' => 'op_simple',
'short' => t('='),
'values' => 1,
),
'<>' => array(
'title' => t('Is not equal to'),
'method' => 'op_simple',
'short' => t('!='),
'values' => 1,
),
'>=' => array(
'title' => t('Is greater than or equal to'),
'method' => 'op_simple',
'short' => t('>='),
'values' => 1,
),
'>' => array(
'title' => t('Is greater than'),
'method' => 'op_simple',
'short' => t('>'),
'values' => 1,
),
'BETWEEN' => array(
'title' => t('Is between'),
'method' => 'op_between',
'short' => t('between'),
'values' => 2,
),
);
return $operators;
}