ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ 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\DictionaryInterface
Definition:
DictionaryInterface.php:25
ILIAS\MetaData\Repository\Validation\Dictionary
Definition:
DictionaryInterface.php:21
ILIAS\MetaData\Repository\Validation\Dictionary\LOMDictionary\tagsForElement
tagsForElement(BaseElementInterface $element)
Definition:
LOMDictionary.php:31
ILIAS\MetaData\Repository\Validation\Dictionary\TagInterface
Definition:
TagInterface.php:25
Generator
BaseElementInterface
ILIAS\MetaData\Elements\Base\BaseElementInterface
Definition:
BaseElementInterface.php:27
ILIAS\MetaData\Structure\Dictionaries\Dictionary
Definition:
Dictionary.php:32
ILIAS\MetaData\Repository\Validation\Dictionary\LOMDictionary
Definition:
LOMDictionary.php:26
components
ILIAS
MetaData
classes
Repository
Validation
Dictionary
LOMDictionary.php
Generated on Wed Sep 3 2025 23:03:27 for ILIAS by
1.8.13 (using
Doxyfile
)