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