You are here

class views_handler_filter_is_locked in Content locking (anti-concurrent editing) 6

Same name and namespace in other branches
  1. 6.2 views/views_handler_filter_is_locked.inc \views_handler_filter_is_locked
  2. 7 views/views_handler_filter_is_locked.inc \views_handler_filter_is_locked

@file Handler to filter based on locked nodes

Hierarchy

Expanded class hierarchy of views_handler_filter_is_locked

1 string reference to 'views_handler_filter_is_locked'
content_lock_views_data in views/content_lock.views.inc
Implementation of hook_views_data()

File

views/views_handler_filter_is_locked.inc, line 8
Handler to filter based on locked nodes

View source
class views_handler_filter_is_locked extends views_handler_filter_boolean_operator {
  function query() {
    $this
      ->ensure_my_table();
    if (empty($this->value)) {
      $this->query
        ->add_where($this->options['group'], "{$this->table_alias}.timestamp IS NULL");
    }
    else {
      $this->query
        ->add_where($this->options['group'], "{$this->table_alias}.timestamp IS NOT NULL");
    }
  }

}

Members