ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 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.

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

References $version.


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