ContentLockViewsHandlerFilterLocked.inc in Content locking (anti-concurrent editing) 7.3
Same filename and directory in other branches
Handler to filter based on locked nodes.
File
views/ContentLockViewsHandlerFilterLocked.incView source
<?php
/**
* @file
* Handler to filter based on locked nodes.
*/
/**
* Class ContentLockViewsHandlerFilterLocked.
*/
class ContentLockViewsHandlerFilterLocked extends views_handler_filter_boolean_operator {
/**
* Query.
*/
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", "<>");
}
}
}
Classes
Name | Description |
---|---|
ContentLockViewsHandlerFilterLocked | Class ContentLockViewsHandlerFilterLocked. |