ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
Set.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Elements
;
22
23
use
ILIAS\MetaData\Elements\Base\BaseSet
;
24
use
ILIAS\MetaData\Elements\RessourceID\RessourceIDInterface
;
25
26
class
Set
extends
BaseSet
implements
SetInterface
27
{
28
private
RessourceIDInterface
$ressource_id
;
29
30
public
function
__construct
(
31
RessourceIDInterface
$ressource_id
,
32
ElementInterface
$root
33
) {
34
parent::__construct
(
$root
);
35
$this->ressource_id =
$ressource_id
;
36
}
37
38
public
function
getRessourceID
():
RessourceIDInterface
39
{
40
return
$this->ressource_id
;
41
}
42
43
public
function
getRoot
():
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
}
53
}
ILIAS\MetaData\Elements\Base\BaseSet
Definition:
BaseSet.php:24
ILIAS\MetaData\Elements\Base\BaseSet\$root
BaseElementInterface $root
Definition:
BaseSet.php:25
ILIAS\MetaData\Elements\Set
Definition:
Set.php:27
ILIAS\MetaData\Elements\Set\$ressource_id
RessourceIDInterface $ressource_id
Definition:
Set.php:28
ILIAS\MetaData\Elements\Set\__construct
__construct(RessourceIDInterface $ressource_id, ElementInterface $root)
Definition:
Set.php:30
ILIAS\MetaData\Elements\Set\getRessourceID
getRessourceID()
Contains the information needed to identify the ILIAS object this metadata set belongs to.
Definition:
Set.php:38
ILIAS\MetaData\Elements\Set\getRoot
getRoot()
Returns the root element of the metadata set.
Definition:
Set.php:43
ILIAS\MetaData\Elements\ElementInterface
Definition:
ElementInterface.php:29
ILIAS\MetaData\Elements\RessourceID\RessourceIDInterface
Definition:
RessourceIDInterface.php:24
ILIAS\MetaData\Elements\SetInterface
Definition:
SetInterface.php:27
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Definition:
PluginProviderHelper.php:38
ILIAS\MetaData\Elements
components
ILIAS
MetaData
classes
Elements
Set.php
Generated on Sat Oct 18 2025 23:02:27 for ILIAS by
1.9.4 (using
Doxyfile
)