ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\MetaData\Elements\Set Class Reference
+ Inheritance diagram for ILIAS\MetaData\Elements\Set:
+ Collaboration diagram for ILIAS\MetaData\Elements\Set:

Public Member Functions

 __construct (RessourceIDInterface $ressource_id, ElementInterface $root)
 
 getRessourceID ()
 Contains the information needed to identify the ILIAS object this metadata set belongs to. More...
 
 getRoot ()
 Returns the root element of the metadata set. More...
 

Private Attributes

RessourceIDInterface $ressource_id
 

Detailed Description

Definition at line 26 of file Set.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MetaData\Elements\Set::__construct ( RessourceIDInterface  $ressource_id,
ElementInterface  $root 
)

Definition at line 30 of file Set.php.

References ILIAS\MetaData\Elements\Set\$ressource_id, and ILIAS\GlobalScreen\Provider\__construct().

33  {
35  $this->ressource_id = $ressource_id;
36  }
RessourceIDInterface $ressource_id
Definition: Set.php:28
__construct(Container $dic, ilPlugin $plugin)
BaseElementInterface $root
Definition: BaseSet.php:25
+ Here is the call graph for this function:

Member Function Documentation

◆ getRessourceID()

ILIAS\MetaData\Elements\Set::getRessourceID ( )

Contains the information needed to identify the ILIAS object this metadata set belongs to.

Implements ILIAS\MetaData\Elements\SetInterface.

Definition at line 38 of file Set.php.

References ILIAS\MetaData\Elements\Set\$ressource_id.

38  : RessourceIDInterface
39  {
40  return $this->ressource_id;
41  }
RessourceIDInterface $ressource_id
Definition: Set.php:28

◆ getRoot()

ILIAS\MetaData\Elements\Set::getRoot ( )

Returns the root element of the metadata set.

Implements ILIAS\MetaData\Elements\SetInterface.

Definition at line 43 of file Set.php.

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

43  : ElementInterface
44  {
45  $root = parent::getRoot();
46  if ($root instanceof ElementInterface) {
47  return $root;
48  }
49  throw new \ilMDElementsException(
50  'Metadata set has invalid root element.'
51  );
52  }
BaseElementInterface $root
Definition: BaseSet.php:25

Field Documentation

◆ $ressource_id

RessourceIDInterface ILIAS\MetaData\Elements\Set::$ressource_id
private

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