mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Extract whether subdef metadata updates are required
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user