ILIAS  trunk Revision v12.0_alpha-1541-g23eaa5e013d
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)
 
 tagForElement (BaseElementInterface $element, Version $version)
 

Additional Inherited Members

Detailed Description

Definition at line 29 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 31 of file LOMDictionary.php.

34 : ?TagInterface {
35 foreach (parent::tagsForElement($element) as $tag) {
36 if (!($tag instanceof TagInterface)) {
37 throw new \ilMDXMLException('Invalid dictionary');
38 }
39 if ($tag->version() === $version) {
40 return $tag;
41 }
42 }
43 return null;
44 }
$version
Definition: plugin.php:24

References $version.


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