You are here

function efq_views_handler_filter_string::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_string::operators

1 call to efq_views_handler_filter_string::operators()
efq_views_handler_filter_string::query in handlers/efq_views_handler_filter_string.inc
Add this filter to the query.

File

handlers/efq_views_handler_filter_string.inc, line 8

Class

efq_views_handler_filter_string

Code

function operators() {
  $operators = array(
    '=' => array(
      'title' => t('Is equal to'),
      'short' => t('='),
      'method' => 'op_simple',
      'values' => 1,
    ),
    '<>' => array(
      'title' => t('Is not equal to'),
      'short' => t('!='),
      'method' => 'op_simple',
      'values' => 1,
    ),
    'CONTAINS' => array(
      'title' => t('Contains'),
      'short' => t('contains'),
      'method' => 'op_simple',
      'values' => 1,
    ),
    'STARTS_WITH' => array(
      'title' => t('Starts with'),
      'short' => t('begins'),
      'method' => 'op_simple',
      'values' => 1,
    ),
  );
  return $operators;
}