You are here

function views_handler_filter_string_compare::op_empty in Amazon Product Advertisement API 7

Same name and namespace in other branches
  1. 6 includes/views_handler_filter_string_compare.inc \views_handler_filter_string_compare::op_empty()
  2. 7.2 includes/views_handler_filter_string_compare.inc \views_handler_filter_string_compare::op_empty()

File

includes/views_handler_filter_string_compare.inc, line 283

Class

views_handler_filter_string_compare
Basic textfield filter to handle string filtering commands including equality, like, not like, etc.

Code

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