ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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\Set\$ressource_id
RessourceIDInterface $ressource_id
Definition:
Set.php:28
RessourceIDInterface
ILIAS\MetaData\Elements\ElementInterface
Definition:
ElementInterface.php:28
ILIAS\MetaData\Elements\Set
Definition:
Set.php:26
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\RessourceID\RessourceIDInterface
Definition:
RessourceIDInterface.php:23
BaseSet
ILIAS\MetaData\Elements\SetInterface
Definition:
SetInterface.php:26
ILIAS\MetaData\Elements\Set\getRoot
getRoot()
Returns the root element of the metadata set.
Definition:
Set.php:43
ILIAS\MetaData\Elements
ILIAS\MetaData\Elements\Set\__construct
__construct(RessourceIDInterface $ressource_id, ElementInterface $root)
Definition:
Set.php:30
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ILIAS\MetaData\Elements\Base\BaseSet
Definition:
BaseSet.php:23
ILIAS\MetaData\Elements\Base\BaseSet\$root
BaseElementInterface $root
Definition:
BaseSet.php:25
components
ILIAS
MetaData
classes
Elements
Set.php
Generated on Sun Aug 31 2025 23:02:05 for ILIAS by
1.8.13 (using
Doxyfile
)