public function apachesolr_views_handler_field::get_value in Apache Solr Views 7
Retrieve value from Solr result document.
Overrides views_handler_field::get_value
File
- handlers/
apachesolr_views_handler_field.inc, line 13 - Field handler for Apache Solr Views.
Class
- apachesolr_views_handler_field
- @file Field handler for Apache Solr Views.
Code
public function get_value($values, $field = NULL) {
$alias = isset($field) ? $this->aliases[$field] : $this->field_alias;
if (isset($values->{$alias})) {
if (is_array($values->{$alias})) {
return decode_entities(implode(' ', $values->{$alias}));
}
else {
return decode_entities($values->{$alias});
}
}
}