function efq_views_handler_filter_property_boolean::query in EntityFieldQuery Views Backend 7
Add this filter to the query.
Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.
Overrides views_handler_filter_boolean_operator::query
File
- handlers/
efq_views_handler_filter_property_boolean.inc, line 7
Class
- efq_views_handler_filter_property_boolean
- Filter handler for boolean properties.
Code
function query() {
if (empty($this->value)) {
$this->query->query
->propertyCondition($this->real_field, 0, "=");
}
else {
$this->query->query
->propertyCondition($this->real_field, 0, "<>");
}
}