mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 04:53:26 +00:00
Add highlights query
This commit is contained in:

committed by
Benoît Burnichon

parent
1ef4c1300d
commit
2d5a36f5a2
@@ -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
|
||||
|
Reference in New Issue
Block a user