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

Public Member Functions

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

Private Attributes

BaseElementInterface $root
 

Detailed Description

Definition at line 23 of file BaseSet.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\Elements\Base\BaseSet::__construct ( BaseElementInterface  $root)

Definition at line 27 of file BaseSet.php.

28 {
29 if (!$root->isRoot() || $root->getSuperElement()) {
30 throw new \ilMDElementsException(
31 'Metadata sets must be created from a root element.'
32 );
33 }
34 $this->root = $root;
35 }
BaseElementInterface $root
Definition: BaseSet.php:25

References ILIAS\MetaData\Elements\Base\BaseSet\$root, ILIAS\MetaData\Elements\Base\BaseElementInterface\getSuperElement(), and ILIAS\MetaData\Elements\Base\BaseElementInterface\isRoot().

+ Here is the call graph for this function:

Member Function Documentation

◆ __clone()

ILIAS\MetaData\Elements\Base\BaseSet::__clone ( )

Definition at line 37 of file BaseSet.php.

38 {
39 $this->root = clone $this->root;
40 }

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

◆ getRoot()

ILIAS\MetaData\Elements\Base\BaseSet::getRoot ( )

Field Documentation

◆ $root


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