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

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.

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

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
+ 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.

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

38  {
39  $this->root = clone $this->root;
40  }
BaseElementInterface $root
Definition: BaseSet.php:25

◆ getRoot()

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

Returns the root element of the metadata set.

Implements ILIAS\MetaData\Elements\Base\BaseSetInterface.

Definition at line 42 of file BaseSet.php.

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

42  : BaseElementInterface
43  {
44  return $this->root;
45  }
BaseElementInterface $root
Definition: BaseSet.php:25

Field Documentation

◆ $root


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