ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ 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
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
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 Sun Aug 31 2025 23:03:22 for ILIAS by
1.8.13 (using
Doxyfile
)