ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilHelpExporter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 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/Help/classes/class.ilHelpDataSet.php");
23  $this->ds = new ilHelpDataSet();
24  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
25  $this->ds->setDSPrefix("ds");
26  }
27 
36  function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
37  {
38  if ($a_entity == "help")
39  {
40  $lm_node_ids = array();
41  include_once("./Modules/LearningModule/classes/class.ilLMObject.php");
42  foreach($a_ids as $lm_id)
43  {
44  $chaps = ilLMObject::getObjectList($lm_id, "st");
45  foreach ($chaps as $chap)
46  {
47  $lm_node_ids[] = $chap["obj_id"];
48  }
49  }
50 
51  return array (
52  array(
53  "component" => "Services/Help",
54  "entity" => "help_map",
55  "ids" => $lm_node_ids),
56  array(
57  "component" => "Services/Help",
58  "entity" => "help_tooltip",
59  "ids" => $a_ids)
60  );
61  }
62 
63  return array();
64  }
65 
66 
75  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
76  {
77  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
78  }
79 
87  function getValidSchemaVersions($a_entity)
88  {
89  return array (
90  "4.3.0" => array(
91  "namespace" => "http://www.ilias.de/Services/Help/help/4_3",
92  "xsd_file" => "ilias_help_4_3.xsd",
93  "uses_dataset" => true,
94  "min" => "4.3.0",
95  "max" => "")
96  );
97  }
98 
99 }
100 
101 ?>
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
Exporter class for help system information.
Help system data set class.
Xml Exporter class.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
init()
Initialisation.
Create styles array
The data for the language used.
static getObjectList($lm_id, $type="")
static
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.