ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
StructureSet.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Elements\Structure
;
22
23
use
ILIAS\MetaData\Elements\Base\BaseSet
;
24
25
class
StructureSet
extends
BaseSet
implements
StructureSetInterface
26
{
27
public
function
__construct
(
StructureElementInterface
$root
)
28
{
29
parent::__construct
($root);
30
}
31
32
public
function
getRoot
():
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
}
42
}
ILIAS\MetaData\Elements\Structure
Definition:
NullStructureElement.php:21
ILIAS\MetaData\Elements\Structure\StructureSet\__construct
__construct(StructureElementInterface $root)
Definition:
StructureSet.php:27
ILIAS\MetaData\Elements\Structure\StructureSet\getRoot
getRoot()
Returns the root element of the metadata set.
Definition:
StructureSet.php:32
ILIAS\MetaData\Elements\Structure\StructureSetInterface
Definition:
StructureSetInterface.php:25
ILIAS\MetaData\Repository\Validation\Data\__construct
__construct(VocabulariesInterface $vocabularies)
Definition:
VocabularyBridge.php:31
BaseSet
ILIAS\MetaData\Elements\Structure\StructureSet
Definition:
StructureSet.php:25
ILIAS\MetaData\Elements\Base\BaseSet
Definition:
BaseSet.php:23
ILIAS\MetaData\Elements\Base\BaseSet\$root
BaseElementInterface $root
Definition:
BaseSet.php:25
ILIAS\MetaData\Elements\Structure\StructureElementInterface
Definition:
StructureElementInterface.php:26
Services
MetaData
classes
Elements
Structure
StructureSet.php
Generated on Wed Sep 10 2025 14:11:44 for ILIAS by
1.8.13 (using
Doxyfile
)