ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
LOMDictionary.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
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 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
tagForElement(BaseElementInterface $element)