function SearchApiStringFilter::query in Search API Extended String Filter 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 SearchApiViewsHandlerFilter::query
File
- includes/
handler_filter_string.inc, line 236
Class
Code
function query() {
while (is_array($this->value)) {
$this->value = $this->value ? reset($this->value) : NULL;
}
if ($this->value) {
$this
->ensure_my_table();
$info = $this
->operators();
if (!empty($info[$this->operator]['method'])) {
$this
->{$info[$this->operator]['method']}($this->real_field);
}
}
}