Fix caption record cache invalidation when Databox structure DCES settings are modified

This commit is contained in:
Romain Neutron
2013-05-24 11:45:20 +02:00
parent 8a28ff16bc
commit f146d6725a
3 changed files with 21 additions and 10 deletions

View File

@@ -109,6 +109,19 @@ class databox_descriptionStructure implements IteratorAggregate
return null;
}
public function get_dces_field($label)
{
foreach ($this->elements as $field) {
if (null !== $dces_element = $field->get_dces_element()) {
if ($label === $dces_element->get_label()) {
return $field;
}
}
}
return null;
}
/**
*
* @param string $id