ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
LOMDictionary.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Vocabularies\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
{
33
public
function
tagsForElement
(
34
BaseElementInterface
$element
35
): \
Generator
{
36
foreach
(parent::tagsForElement($element) as $tag) {
37
if
(!($tag instanceof
TagInterface
)) {
38
throw
new \ilMDVocabulariesException(
'Invalid dictionary'
);
39
}
40
yield $tag;
41
}
42
}
43
}
ILIAS\MetaData\Vocabularies\Dictionary\LOMDictionary\tagsForElement
tagsForElement(BaseElementInterface $element)
Definition:
LOMDictionary.php:33
ILIAS\MetaData\Vocabularies\Dictionary\DictionaryInterface
Definition:
DictionaryInterface.php:25
throwException
ILIAS\MetaData\Vocabularies\Dictionary\TagInterface
Definition:
TagInterface.php:26
Generator
BaseElementInterface
ILIAS\MetaData\Elements\Base\BaseElementInterface
Definition:
BaseElementInterface.php:27
ILIAS\MetaData\Structure\Dictionaries\Dictionary
Definition:
Dictionary.php:32
ILIAS\MetaData\Vocabularies\Dictionary
Definition:
DictionaryInitiatorInterface.php:21
ILIAS\MetaData\Vocabularies\Dictionary\LOMDictionary
Definition:
LOMDictionary.php:28
Services
MetaData
classes
Vocabularies
Dictionary
LOMDictionary.php
Generated on Wed Sep 10 2025 14:11:39 for ILIAS by
1.8.13 (using
Doxyfile
)