ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilHTMLLearningModuleExporter.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("./Modules/HTMLLearningModule/classes/class.ilHTMLLearningModuleDataSet.php");
23  $this->ds = new ilHTMLLearningModuleDataSet();
24  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
25  $this->ds->setDSPrefix("ds");
26  }
27 
28 
37  function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
38  {
39 
40  $md_ids = array();
41  foreach ($a_ids as $id)
42  {
43  $md_ids[] = $id.":0:htlm";
44  }
45 
46  return array (
47  array(
48  "component" => "Services/MetaData",
49  "entity" => "md",
50  "ids" => $md_ids)
51  );
52  }
53 
62  public function getXmlRepresentation($a_entity, $a_target_release, $a_id)
63  {
64  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
65  return $this->ds->getXmlRepresentation($a_entity, $a_target_release, $a_id, "", true, true);
66  }
67 
75  function getValidSchemaVersions($a_entity)
76  {
77  return array (
78  "4.1.0" => array(
79  "namespace" => "http://www.ilias.de/Modules/HTMLLearningModule/htlm/4_1",
80  "xsd_file" => "ilias_htlm_4_1.xsd",
81  "uses_dataset" => true,
82  "min" => "4.1.0",
83  "max" => "")
84  );
85  }
86 
87 }
88 
89 ?>