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\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
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
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 3 2025 23:03:27 for ILIAS by
1.8.13 (using
Doxyfile
)