ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilMetaDataExporter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Export/classes/class.ilXmlExporter.php");
5 
14 {
15  private $ds;
16 
20  function init()
21  {
22  }
23 
32  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
33  {
34  include_once("./Services/MetaData/classes/class.ilMD2XML.php");
35  $id = explode(":", $a_id);
36  $mdxml = new ilMD2XML($id[0], $id[1], $id[2]);
37  $mdxml->setExportMode();
38  $mdxml->startExport();
39 
40  return $mdxml->getXml();
41  }
42 
50  function getValidSchemaVersions($a_entity)
51  {
52  return array (
53  "4.1.0" => array(
54  "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1",
55  "xsd_file" => "ilias_md_4_1.xsd",
56  "min" => "4.1.0",
57  "max" => "")
58  );
59  }
60 
61 }
62 
63 ?>