function views_handler_filter_numeric::op_empty
2 methods override views_handler_filter_numeric::op_empty()
File
-
handlers/
views_handler_filter_numeric.inc, line 318
Class
- views_handler_filter_numeric
- Simple filter to handle greater than/less than filters.
Code
public function op_empty($field) {
if ($this->operator == 'empty') {
$operator = "IS NULL";
}
else {
$operator = "IS NOT NULL";
}
$this->query
->add_where($this->options['group'], $field, NULL, $operator);
}