class private_handler_filter_private in Private content 8.2
@file Views handlers for the private module.
Hierarchy
- class \private_handler_filter_private extends \views_handler_filter_boolean_operator
Expanded class hierarchy of private_handler_filter_private
1 string reference to 'private_handler_filter_private'
- private_views_data in ./
private.views.inc - Implements hook_views_data().
File
- ./
private_handler_filter_private.inc, line 8 - Views handlers for the private module.
View source
class private_handler_filter_private extends views_handler_filter_boolean_operator {
function construct() {
parent::construct();
$this->value_value = t('Private');
}
function query() {
$this
->ensure_my_table();
$qualified_name = "{$this->table_alias}.{$this->real_field}";
$this->query
->add_where_expression($this->options['group'], $qualified_name . (empty($this->value) ? " = 0 OR {$qualified_name} IS NULL" : ' = 1'));
}
}