ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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\Validation\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
{
31
public
function
tagsForElement
(
32
BaseElementInterface
$element
33
): \Generator {
34
foreach (parent::
tagsForElement
($element) as $tag) {
35
if
(!($tag instanceof
TagInterface
)) {
36
throw
new \ilMDRepositoryException(
'Invalid dictionary'
);
37
}
38
yield $tag;
39
}
40
}
41
}
ILIAS\MetaData\Repository\Validation\Dictionary\LOMDictionary
Definition:
LOMDictionary.php:27
ILIAS\MetaData\Repository\Validation\Dictionary\LOMDictionary\tagsForElement
tagsForElement(BaseElementInterface $element)
Definition:
LOMDictionary.php:31
ILIAS\MetaData\Structure\Dictionaries\Dictionary
Definition:
Dictionary.php:33
ILIAS\MetaData\Elements\Base\BaseElementInterface
Definition:
BaseElementInterface.php:28
ILIAS\MetaData\Repository\Validation\Dictionary\DictionaryInterface
Definition:
DictionaryInterface.php:26
ILIAS\MetaData\Repository\Validation\Dictionary\TagInterface
Definition:
TagInterface.php:26
ILIAS\MetaData\Repository\Validation\Dictionary
Definition:
DictionaryInterface.php:21
components
ILIAS
MetaData
classes
Repository
Validation
Dictionary
LOMDictionary.php
Generated on Sun Oct 19 2025 23:03:18 for ILIAS by
1.9.4 (using
Doxyfile
)