Remove some arguments from query and add them to options

This commit is contained in:
Benoît Burnichon
2016-04-15 16:34:47 +02:00
parent 581d5115af
commit 033542ac2f
10 changed files with 70 additions and 40 deletions

View File

@@ -114,6 +114,16 @@ class databox_descriptionStructure implements IteratorAggregate, Countable
: null;
}
/**
* @return databox_field[]
*/
public function getDcesFields()
{
return array_filter($this->elements, function (databox_field $field) {
return null !== $field->get_dces_element();
});
}
/**
* @param string $label
* @return databox_field|null