ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\MetaData\XML\Dictionary\LOMDictionary Class Reference
+ Inheritance diagram for ILIAS\MetaData\XML\Dictionary\LOMDictionary:
+ Collaboration diagram for ILIAS\MetaData\XML\Dictionary\LOMDictionary:

Public Member Functions

 tagForElement (BaseElementInterface $element, Version $version)
 

Additional Inherited Members

Detailed Description

Definition at line 30 of file LOMDictionary.php.

Member Function Documentation

◆ tagForElement()

ILIAS\MetaData\XML\Dictionary\LOMDictionary::tagForElement ( BaseElementInterface  $element,
Version  $version 
)

Implements ILIAS\MetaData\XML\Dictionary\DictionaryInterface.

Definition at line 32 of file LOMDictionary.php.

References $version, and null.

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  }
$version
Definition: plugin.php:24
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

The documentation for this class was generated from the following file: