ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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  public 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  public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
38  {
39  $md_ids = array();
40  foreach ($a_ids as $id) {
41  $md_ids[] = $id . ":0:htlm";
42  }
43 
44  return array(
45  array(
46  "component" => "Services/MetaData",
47  "entity" => "md",
48  "ids" => $md_ids)
49  );
50  }
51 
60  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
61  {
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  public function getValidSchemaVersions($a_entity)
74  {
75  return array(
76  "4.1.0" => array(
77  "namespace" => "http://www.ilias.de/Modules/HTMLLearningModule/htlm/4_1",
78  "xsd_file" => "ilias_htlm_4_1.xsd",
79  "uses_dataset" => true,
80  "min" => "4.1.0",
81  "max" => "")
82  );
83  }
84 }
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
if(!array_key_exists('StateId', $_REQUEST)) $id
Xml Exporter class.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
Create styles array
The data for the language used.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
HTML learning module data set class.
Exporter class for html learning modules.