ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
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 
27 
29 
30 class LOMDictionary extends BaseDictionary implements DictionaryInterface
31 {
32  public function tagForElement(
33  BaseElementInterface $element,
35  ): ?TagInterface {
36  foreach (parent::tagsForElement($element) as $tag) {
37  if (!($tag instanceof TagInterface)) {
38  throw new \ilMDXMLException('Invalid dictionary');
39  }
40  if ($tag->version() === $version) {
41  return $tag;
42  }
43  }
44  return null;
45  }
46 }
$version
Definition: plugin.php:24
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
tagForElement(BaseElementInterface $element, Version $version)