30 $this->help_domain =
$DIC->help()->internal()->domain();
31 $this->help_data =
$DIC->help()->internal()->data();
35 $this->help_map = $this->help_domain->map();
36 $this->help_tooltips = $this->help_domain->tooltips();
41 return array(
"10.0",
"4.3.0");
44 protected function getXmlNamespace(
string $a_entity,
string $a_schema_version): string
46 return "https://www.ilias.de/xml/Services/Help/" . $a_entity;
49 protected function getTypes(
string $a_entity,
string $a_version): array
51 if ($a_entity ===
"help_map") {
56 "Component" =>
"text",
58 "ScreenSubId" =>
"text",
64 "Component" =>
"text",
66 "ScreenSubId" =>
"text",
73 if ($a_entity ===
"help_tooltip") {
87 if ($a_entity ===
"gdtr") {
93 "Description" =>
"text",
94 "Permission" =>
"integer",
95 "ScreenIds" =>
"text",
101 if ($a_entity ===
"gdtr_step") {
102 switch ($a_version) {
106 "TourId" =>
"integer",
107 "OrderNr" =>
"integer",
109 "ElementId" =>
"text"
117 public function readData(
string $a_entity,
string $a_version, array $a_ids): void
121 if ($a_entity ===
"help_map") {
122 switch ($a_version) {
127 $ilDB->in(
"chap", $a_ids,
false,
"integer"));
133 $ilDB->in(
"chap", $a_ids,
false,
"integer"));
138 if ($a_entity ===
"help_tooltip") {
139 switch ($a_version) {
143 " WHERE module_id = " .
$ilDB->quote(0,
"integer"));
148 if ($a_entity ===
"gdtr") {
149 switch ($a_version) {
152 " FROM help_gt_settings hs JOIN object_data od ON (hs.obj_id = od.obj_id)" .
154 $ilDB->in(
"hs.obj_id", $a_ids,
false,
"integer"));
159 if ($a_entity ===
"gdtr_step") {
160 switch ($a_version) {
163 " FROM help_gt_step " .
165 $ilDB->in(
"id", $a_ids,
false,
"integer"));
177 string $a_schema_version
184 $module_id = $a_mapping->
getMapping(
'components/ILIAS/Help',
'help_module', 0);
188 'components/ILIAS/Help',
194 if ((
int) $new_chap === 0) {
196 'components/ILIAS/LearningModule',
203 $this->help_map->saveMappingEntry(
207 $a_rec[
"ScreenSubId"],
210 $a_rec[
"FullId"] ??
""
219 $module_id = $a_mapping->
getMapping(
'components/ILIAS/Help',
'help_module', 0);
221 $this->help_tooltips->addTooltip($a_rec[
"TtId"], $a_rec[
"TtText"], $module_id);
227 $newObj->create(0,
true);
229 $newObj->setTitle($a_rec[
"Title"]);
230 $newObj->setDescription($a_rec[
"Description"]);
231 $newObj->update(
true);
234 $a_mapping->
addMapping(
"components/ILIAS/Help",
"gdtr", $a_rec[
"ObjId"], $newObj->getId());
235 $a_mapping->
addMapping(
"components/ILIAS/ILIASObject",
"obj", $a_rec[
"ObjId"], $newObj->getId());
237 $this->help_domain->guidedTour()->tourSettings()->save(
238 $this->help_data->guidedTour()->settings(
249 $tour_id = (
int) $a_mapping->
getMapping(
"components/ILIAS/Help",
"gdtr", $a_rec[
"TourId"]);
251 $step_id = $this->help_domain->guidedTour()->step()->create(
252 $this->help_data->guidedTour()->step(
255 (
int) $a_rec[
"OrderNr"],
261 "components/ILIAS/COPage",
263 "gdtr:" . $a_rec[
"Id"],
A dataset contains in data in a common structure that can be shared and transformed for different pur...
stripTags(array $rec, array $omit_keys=[])
getDirectDataFromQuery(string $a_query, bool $a_convert_to_leading_upper=true, bool $a_set=true)
Get data from query.This is a standard procedure, all db field names are directly mapped to abstract ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getTypes(string $a_entity, string $a_version)
Get (abstract) types for (abstract) field names.
importRecord(string $a_entity, array $a_types, array $a_rec, ilImportMapping $a_mapping, string $a_schema_version)
Needs to be overwritten for import use case.
ILIAS Help Map MapManager $help_map
readData(string $a_entity, string $a_version, array $a_ids)
Read data from DB.
getXmlNamespace(string $a_entity, string $a_schema_version)
ILIAS Help Tooltips TooltipsManager $help_tooltips
ILIAS Help InternalDomainService $help_domain
ILIAS Help InternalDataService $help_data
addMapping(string $a_comp, string $a_entity, string $a_old_id, string $a_new_id)
getMapping(string $a_comp, string $a_entity, string $a_old_id)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.