ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
LOMDictionary.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Editor\Dictionary
;
22
23
use
ILIAS\MetaData\Elements\Base\BaseElementInterface
;
24
use
ILIAS\MetaData\Structure\Dictionaries\Dictionary
as BaseDictionary;
25
26
class
LOMDictionary
extends
BaseDictionary implements
DictionaryInterface
27
{
28
public
function
tagForElement
(
29
BaseElementInterface
$element
30
): ?
TagInterface
{
31
foreach
(parent::tagsForElement($element) as $tag) {
32
if
(!($tag instanceof
TagInterface
)) {
33
throw
new \ilMDRepositoryException(
'Invalid dictionary'
);
34
}
35
return
$tag;
36
}
37
return
null;
38
}
39
}
ILIAS\MetaData\Editor\Dictionary\DictionaryInterface
Definition:
DictionaryInterface.php:25
ILIAS\MetaData\Editor\Dictionary\LOMDictionary\tagForElement
tagForElement(BaseElementInterface $element)
Definition:
LOMDictionary.php:28
ILIAS\MetaData\Editor\Dictionary\TagInterface
Definition:
TagInterface.php:26
ILIAS\MetaData\Editor\Dictionary\LOMDictionary
Definition:
LOMDictionary.php:26
BaseElementInterface
ILIAS\MetaData\Elements\Base\BaseElementInterface
Definition:
BaseElementInterface.php:27
ILIAS\MetaData\Structure\Dictionaries\Dictionary
Definition:
Dictionary.php:32
ILIAS\MetaData\Editor\Dictionary
Definition:
DictionaryInterface.php:21
components
ILIAS
MetaData
classes
Editor
Dictionary
LOMDictionary.php
Generated on Wed Sep 10 2025 15:15:59 for ILIAS by
1.8.13 (using
Doxyfile
)