Add highlights query

This commit is contained in:
Nicolas Le Goff
2014-12-29 15:06:45 +01:00
committed by Benoît Burnichon
parent 1ef4c1300d
commit 2d5a36f5a2
18 changed files with 120 additions and 41 deletions

View File

@@ -763,6 +763,21 @@ class record_adapter implements RecordInterface, cache_cacheableInterface
return new caption_record($this->app, $this, $this->get_databox());
}
public function getCaption()
{
$collection = new ArrayCollection();
foreach ($this->get_caption()->get_fields() as $field) {
$values = array_map(function($fieldValue) {
return $fieldValue->getValue();
}, $field->get_values());
$collection->set($field->get_name(), $values);
}
return $collection;
}
/**
*
* @return string