You are here

function google_analytics_reports_handler_filter_numeric::operators in Google Analytics Reports 7.3

2 calls to google_analytics_reports_handler_filter_numeric::operators()
google_analytics_reports_handler_filter_numeric::accept_exposed_input in handlers/google_analytics_reports_handler_filter_numeric.inc
Do some minor translation of the exposed input.
google_analytics_reports_handler_filter_numeric::operator_values in handlers/google_analytics_reports_handler_filter_numeric.inc

File

handlers/google_analytics_reports_handler_filter_numeric.inc, line 29
Definition of google_analytics_reports_handler_filter_numeric.

Class

google_analytics_reports_handler_filter_numeric
Simple filter to handle numerics for Google Analytics.

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,
    ),
  );
  return $operators;
}