ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilHelpExporter.php
Go to the documentation of this file.
1 <?php
2 
25 {
26  private ilHelpDataSet $ds;
27 
28  public function init(): void
29  {
30  $this->ds = new ilHelpDataSet();
31  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
32  $this->ds->setDSPrefix("ds");
33  }
34 
36  string $a_entity,
37  string $a_target_release,
38  array $a_ids
39  ): array {
40  if ($a_entity === "help") {
41  $lm_node_ids = array();
42  foreach ($a_ids as $lm_id) {
43  $chaps = ilLMObject::getObjectList($lm_id, "st");
44  foreach ($chaps as $chap) {
45  $lm_node_ids[] = $chap["obj_id"];
46  }
47  }
48 
49  return array(
50  array(
51  "component" => "Services/Help",
52  "entity" => "help_map",
53  "ids" => $lm_node_ids),
54  array(
55  "component" => "Services/Help",
56  "entity" => "help_tooltip",
57  "ids" => $a_ids)
58  );
59  }
60 
61  return array();
62  }
63 
64  public function getXmlRepresentation(
65  string $a_entity,
66  string $a_schema_version,
67  string $a_id
68  ): string {
69  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
70  }
71 
72  public function getValidSchemaVersions(string $a_entity): array
73  {
74  return array(
75  "4.3.0" => array(
76  "namespace" => "https://www.ilias.de/Services/Help/help/4_3",
77  "xsd_file" => "ilias_help_4_3.xsd",
78  "uses_dataset" => true,
79  "min" => "4.3.0",
80  "max" => "")
81  );
82  }
83 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getObjectList(int $lm_id, string $type="")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getValidSchemaVersions(string $a_entity)
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)