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\Repository\Dictionary
;
22
23
use
ILIAS\MetaData\Elements\Base\BaseElementInterface
;
24
use
ILIAS\MetaData\Structure\Dictionaries\Dictionary
as BaseDictionary;
25
26
use
function
PHPUnit\Framework\throwException
;
27
28
class
LOMDictionary
extends
BaseDictionary implements
DictionaryInterface
29
{
30
public
function
tagForElement
(
31
BaseElementInterface
$element
32
): ?
TagInterface
{
33
foreach
(parent::tagsForElement($element) as $tag) {
34
if
(!($tag instanceof
TagInterface
)) {
35
throw
new \ilMDRepositoryException(
'Invalid dictionary'
);
36
}
37
return
$tag;
38
}
39
return
null;
40
}
41
}
ILIAS\MetaData\Repository\Dictionary
Definition:
DictionaryInterface.php:21
ILIAS\MetaData\Repository\Dictionary\TagInterface
Definition:
TagInterface.php:25
throwException
ILIAS\MetaData\Repository\Dictionary\DictionaryInterface
Definition:
DictionaryInterface.php:25
ILIAS\MetaData\Repository\Dictionary\LOMDictionary
Definition:
LOMDictionary.php:28
ILIAS\MetaData\Repository\Dictionary\LOMDictionary\tagForElement
tagForElement(BaseElementInterface $element)
Definition:
LOMDictionary.php:30
BaseElementInterface
ILIAS\MetaData\Elements\Base\BaseElementInterface
Definition:
BaseElementInterface.php:27
ILIAS\MetaData\Structure\Dictionaries\Dictionary
Definition:
Dictionary.php:32
components
ILIAS
MetaData
classes
Repository
Dictionary
LOMDictionary.php
Generated on Wed Sep 10 2025 15:15:59 for ILIAS by
1.8.13 (using
Doxyfile
)