ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\MetaData\Elements\Structure\StructureSet Class Reference
+ Inheritance diagram for ILIAS\MetaData\Elements\Structure\StructureSet:
+ Collaboration diagram for ILIAS\MetaData\Elements\Structure\StructureSet:

Public Member Functions

 __construct (StructureElementInterface $root)
 
 getRoot ()
 Returns the root element of the metadata set. More...
 
 getRoot ()
 Returns the root element of the metadata set. More...
 
 getRoot ()
 Returns the root element of the metadata set. More...
 

Detailed Description

Definition at line 25 of file StructureSet.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\Elements\Structure\StructureSet::__construct ( StructureElementInterface  $root)

Definition at line 27 of file StructureSet.php.

28 {
30 }
BaseElementInterface $root
Definition: BaseSet.php:25
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\MetaData\Elements\Base\BaseSet\$root, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ getRoot()

ILIAS\MetaData\Elements\Structure\StructureSet::getRoot ( )

Returns the root element of the metadata set.

Reimplemented from ILIAS\MetaData\Elements\Base\BaseSet.

Definition at line 32 of file StructureSet.php.

32 : StructureElementInterface
33 {
34 $root = parent::getRoot();
35 if ($root instanceof StructureElementInterface) {
36 return $root;
37 }
38 throw new \ilMDElementsException(
39 'Metadata set has invalid root element.'
40 );
41 }

References ILIAS\MetaData\Elements\Base\BaseSet\$root.


The documentation for this class was generated from the following file: