efq_views_handler_filter_property_in_operator.inc in EntityFieldQuery Views Backend 7
File
handlers/efq_views_handler_filter_property_in_operator.incView source
<?php
/**
* Handle matching of multiple options selectable via checkboxes
*/
class efq_views_handler_filter_property_in_operator extends efq_views_handler_filter_in_operator {
function op_simple() {
if (empty($this->value)) {
return;
}
// We use array_values() because the checkboxes keep keys and that can cause
// array addition problems.
$this->query->query
->propertyCondition($this->real_field, array_values($this->value), $this->operator);
}
}
Classes
Name | Description |
---|---|
efq_views_handler_filter_property_in_operator | Handle matching of multiple options selectable via checkboxes |