public function ContentLockViewsHandlerFilterLocked::query in Content locking (anti-concurrent editing) 7.3
Same name and namespace in other branches
- 7.2 views/ContentLockViewsHandlerFilterLocked.inc \ContentLockViewsHandlerFilterLocked::query()
Query.
Overrides views_handler_filter_boolean_operator::query
File
- views/
ContentLockViewsHandlerFilterLocked.inc, line 15 - Handler to filter based on locked nodes.
Class
- ContentLockViewsHandlerFilterLocked
- Class ContentLockViewsHandlerFilterLocked.
Code
public function query() {
$this
->ensure_my_table();
if (empty($this->value)) {
$this->query
->add_where($this->options['group'], $this->table_alias . ".timestamp", "NULL", "=");
}
else {
$this->query
->add_where($this->options['group'], $this->table_alias . ".timestamp", "NULL", "<>");
}
}