ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilHelpExporter.php
Go to the documentation of this file.
1<?php
2
25{
27
28 public function init(): void
29 {
30 $this->ds = new ilHelpDataSet();
31 $this->ds->initByExporter($this);
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" => "components/ILIAS/Help",
52 "entity" => "help_map",
53 "ids" => $lm_node_ids),
54 array(
55 "component" => "components/ILIAS/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 "10.0" => array(
76 "namespace" => "https://www.ilias.de/Services/Help/help/10_0",
77 "xsd_file" => "ilias_help_10.xsd",
78 "uses_dataset" => true,
79 "min" => "10.0",
80 "max" => ""),
81 "4.3.0" => array(
82 "namespace" => "https://www.ilias.de/Services/Help/help/4_3",
83 "xsd_file" => "ilias_help_4_3.xsd",
84 "uses_dataset" => true,
85 "min" => "4.3.0",
86 "max" => "")
87 );
88 }
89}
return true
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...
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
Get tail dependencies.
getValidSchemaVersions(string $a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
static getObjectList(int $lm_id, string $type="")
Xml Exporter class.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))