Extract whether subdef metadata updates are required

This commit is contained in:
Benoît Burnichon
2016-01-22 17:15:51 +01:00
parent 401ed4f431
commit f501cba16b
8 changed files with 63 additions and 52 deletions

View File

@@ -14,8 +14,7 @@ use Symfony\Component\Translation\TranslatorInterface;
class databox_subdefsStructure implements IteratorAggregate, Countable
{
/**
*
* @var Array
* @var array|databox_subdef[][]
*/
protected $AvSubdefs = [];
@@ -24,6 +23,11 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
*/
private $translator;
/**
* @var databox
*/
private $databox;
/**
*
* @return ArrayIterator
@@ -133,10 +137,10 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
}
/**
* @param $subdef_type
* @param $subdef_name
* @param string $subdef_type
* @param string $subdef_name
*
* @return mixed
* @return databox_subdef
* @throws Exception_Databox_SubdefNotFound
*/
public function get_subdef($subdef_type, $subdef_name)
@@ -220,13 +224,14 @@ class databox_subdefsStructure implements IteratorAggregate, Countable
}
/**
*
* @param string $group
* @param string $name
* @param string $class
* @param boolean $downloadable
* @param Array $options
* @param string $group
* @param string $name
* @param string $class
* @param boolean $downloadable
* @param array $options
* @param array $labels
* @return databox_subdefsStructure
* @throws Exception
*/
public function set_subdef($group, $name, $class, $downloadable, $options, $labels)
{