ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilMetaDataExporter.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
28 {
29  public function init(): void
30  {
31  }
32 
33  public function getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id): string
34  {
35  $id = explode(":", $a_id);
36  $mdxml = new ilMD2XML((int) $id[0], (int) $id[1], (string) $id[2]);
37  $mdxml->setExportMode();
38  $mdxml->startExport();
39 
40  return $mdxml->getXML();
41  }
42 
49  public function getValidSchemaVersions(string $a_entity): array
50  {
51  return array(
52  "4.1.0" => array(
53  "namespace" => "http://www.ilias.de/Services/MetaData/meta/4_1",
54  "xsd_file" => "ilias_meta_4_1.xsd",
55  "min" => "4.1.0",
56  "max" => ""
57  )
58  );
59  }
60 }
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
Exporter class for meta data.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23