You are here

class weight_handler_filter_sticky in Weight 6

Same name and namespace in other branches
  1. 7 weight_handler_filter_sticky.inc \weight_handler_filter_sticky

@file Field handler for Weight module.

Hierarchy

Expanded class hierarchy of weight_handler_filter_sticky

1 string reference to 'weight_handler_filter_sticky'
weight_views_data in views/weight.views.inc
Implementation of hook_views_data().

File

views/weight_handler_filter_sticky.inc, line 7
Field handler for Weight module.

View source
class weight_handler_filter_sticky extends views_handler_filter_boolean_operator {
  function query() {
    $this
      ->ensure_my_table();
    $where = "{$this->table_alias}.{$this->real_field} ";
    if (empty($this->value)) {
      $where .= '<= 0';
    }
    else {
      $where .= ' > 0';
    }
    $this->query
      ->add_where($this->options['group'], $where);
  }

}

Members