ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilMediaObjectsExporter.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  include_once("./Services/MediaObjects/classes/class.ilMediaObjectDataSet.php");
23  $this->ds = new ilMediaObjectDataSet();
24  $this->ds->setDSPrefix("ds");
25  }
26 
35  public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
36  {
37  $md_ids = array();
38  foreach ($a_ids as $mob_id)
39  {
40  $md_ids[] = "0:".$mob_id.":mob";
41  }
42 
43  return array (
44  array(
45  "component" => "Services/MetaData",
46  "entity" => "md",
47  "ids" => $md_ids)
48  );
49  }
50 
59  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
60  {
62  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
63  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
64  }
65 
73  function getValidSchemaVersions($a_entity)
74  {
75  return array (
76  "4.3.0" => array(
77  "namespace" => "http://www.ilias.de/Services/MediaObjects/mob/4_3",
78  "xsd_file" => "ilias_mob_4_3.xsd",
79  "uses_dataset" => true,
80  "min" => "4.3.0",
81  "max" => ""),
82  "4.1.0" => array(
83  "namespace" => "http://www.ilias.de/Services/MediaObjects/mob/4_1",
84  "xsd_file" => "ilias_mob_4_1.xsd",
85  "uses_dataset" => true,
86  "min" => "4.1.0",
87  "max" => "")
88  );
89  }
90 
91 }
92 
93 ?>