ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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...
 

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.

References ILIAS\GlobalScreen\Provider\__construct().

28  {
30  }
__construct(Container $dic, ilPlugin $plugin)
BaseElementInterface $root
Definition: BaseSet.php:25
+ 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.

Implements ILIAS\MetaData\Elements\Structure\StructureSetInterface.

Definition at line 32 of file StructureSet.php.

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

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  }
BaseElementInterface $root
Definition: BaseSet.php:25

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