You are here

function pay_handler_filter_amount::op_empty in Pay 7

Same name and namespace in other branches
  1. 6 includes/views/pay_handler_filter_amount.inc \pay_handler_filter_amount::op_empty()

Overrides views_handler_filter_numeric::op_empty

File

includes/views/pay_handler_filter_amount.inc, line 160

Class

pay_handler_filter_amount
Simple filter to handle greater than/less than filters

Code

function op_empty($field) {
  if ($this->operator == 'empty') {
    $operator = "IS NULL";
  }
  else {
    $operator = "IS NOT NULL";
  }
  $this->query
    ->add_having($this->options['group'], "{$field} {$operator}");
}