ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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
BaseSet
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
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
components
ILIAS
MetaData
classes
Elements
Structure
StructureSet.php
Generated on Sun Aug 31 2025 23:03:23 for ILIAS by
1.8.13 (using
Doxyfile
)