ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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...
 
 getRoot ()
 Returns the root element of the metadata set. More...
 
 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.

33 {
35 $this->ressource_id = $ressource_id;
36 }
BaseElementInterface $root
Definition: BaseSet.php:25
RessourceIDInterface $ressource_id
Definition: Set.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

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

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

◆ getRoot()

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

Returns the root element of the metadata set.

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

Definition at line 43 of file Set.php.

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 }

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

Field Documentation

◆ $ressource_id

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

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