ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  public 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  public function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
37  {
38  if ($a_entity == "help") {
39  $lm_node_ids = array();
40  include_once("./Modules/LearningModule/classes/class.ilLMObject.php");
41  foreach ($a_ids as $lm_id) {
42  $chaps = ilLMObject::getObjectList($lm_id, "st");
43  foreach ($chaps as $chap) {
44  $lm_node_ids[] = $chap["obj_id"];
45  }
46  }
47 
48  return array(
49  array(
50  "component" => "Services/Help",
51  "entity" => "help_map",
52  "ids" => $lm_node_ids),
53  array(
54  "component" => "Services/Help",
55  "entity" => "help_tooltip",
56  "ids" => $a_ids)
57  );
58  }
59 
60  return array();
61  }
62 
63 
72  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
73  {
74  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
75  }
76 
84  public function getValidSchemaVersions($a_entity)
85  {
86  return array(
87  "4.3.0" => array(
88  "namespace" => "http://www.ilias.de/Services/Help/help/4_3",
89  "xsd_file" => "ilias_help_4_3.xsd",
90  "uses_dataset" => true,
91  "min" => "4.3.0",
92  "max" => "")
93  );
94  }
95 }
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.
static getObjectList($lm_id, $type="")
static
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.