function views_handler_filter_heartbeat_access::operators in Heartbeat 6.3
Same name and namespace in other branches
- 6.4 views/handlers/views_handler_filter_heartbeat_access.inc \views_handler_filter_heartbeat_access::operators()
Definition of available operators Override the parent method
Return value
array of operators
1 call to views_handler_filter_heartbeat_access::operators()
- views_handler_filter_heartbeat_access::query in views/
handlers/ views_handler_filter_heartbeat_access.inc - Adding things to query object
File
- views/
handlers/ views_handler_filter_heartbeat_access.inc, line 48
Class
- views_handler_filter_heartbeat_access
- Filter by language
Code
function operators() {
$operators = array(
'=' => 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,
),
);
// if the definition allows for the empty operator, add it.
if (!empty($this->definition['allow empty'])) {
$operators += array(
'empty' => array(
'title' => t('Is empty (NULL)'),
'method' => 'op_empty',
'short' => t('empty'),
'values' => 0,
),
'not empty' => array(
'title' => t('Is not empty (NULL)'),
'method' => 'op_empty',
'short' => t('not empty'),
'values' => 0,
),
);
}
return $operators;
}