public function apachesolr_views_handler_filter::trim_value in Apache Solr Views 7
Trim filter value.
1 call to apachesolr_views_handler_filter::trim_value()
- apachesolr_views_handler_filter::query in handlers/
apachesolr_views_handler_filter.inc - Add this filter to the query.
File
- handlers/
apachesolr_views_handler_filter.inc, line 27 - Main filter handler for Apache Solr Views.
Class
- apachesolr_views_handler_filter
- @file Main filter handler for Apache Solr Views.
Code
public function trim_value() {
// Trim both array or scalar value.
if (is_array($this->value)) {
array_walk($this->value, 'apachesolr_views_handler_filter::trim');
$this->value = array_filter($this->value);
}
else {
$this->value = trim($this->value);
}
}