ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
LOMDictionary.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
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 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
tagForElement(BaseElementInterface $element)