function google_analytics_reports_handler_filter_string::operators in Google Analytics Reports 7.3
This kind of construct makes it relatively easy for a child class to add or remove functionality by overriding this function and adding/removing items from this array.
1 call to google_analytics_reports_handler_filter_string::operators()
File
- handlers/
google_analytics_reports_handler_filter_string.inc, line 28 - Definition of google_analytics_reports_handler_filter_string.
Class
- google_analytics_reports_handler_filter_string
- Basic textfield filter to handle string filtering commands.
Code
function operators() {
$operators = array(
'=' => array(
'title' => t('Is equal to'),
'short' => t('='),
'method' => 'op_equal',
'values' => 1,
),
'!=' => array(
'title' => t('Is not equal to'),
'short' => t('!='),
'method' => 'op_inequal',
'values' => 1,
),
'contains' => array(
'title' => t('Contains'),
'short' => t('contains'),
'method' => 'op_contains',
'values' => 1,
),
'not' => array(
'title' => t('Does not contain'),
'short' => t('!has'),
'method' => 'op_not',
'values' => 1,
),
'regular_expression' => array(
'title' => t('Contains a match for the regular expression'),
'short' => t('regex'),
'method' => 'op_regex',
'values' => 1,
),
'not_regular_expression' => array(
'title' => t('Does not match regular expression'),
'short' => t('!regex'),
'method' => 'op_not_regex',
'values' => 1,
),
);
return $operators;
}