19declare(strict_types=1);
28 protected \ILIAS\Help\GuidedTour\Admin\AdminManager
$gd_admin;
29 protected \ilLanguage
$lng;
39 $this->repo =
$repo->tooltips();
41 $this->
settings = $domain->settings();
42 $this->
user = $domain->user();
43 $this->
lng = $domain->lng();
49 return $this->gd_admin->areIdentifiersVisible();
54 return $this->gd_admin->areIdentifiersVisible() ||
65 $show_main_text =
true;
66 if ($this->
user->getLanguage() !==
"de") {
67 $show_main_text =
false;
70 if ($this->
settings->get(
"help_mode") ===
"1") {
71 $show_main_text =
false;
74 if ($this->
user->getPref(
"hide_help_tt")) {
75 $show_main_text =
false;
77 return $show_main_text;
86 if (!$show_main_text) {
93 if ($this->domain->module()->isAuthoringMode()) {
96 $module_ids = $this->domain->module()->getActiveModules();
98 $text = $this->repo->getTooltipPresentationText(
103 $text .=
"[" . $a_tt_id .
"]";
114 return $this->getTooltipPresentationText($a_type .
"_create");
130 return $this->repo->getAllTooltips($a_comp, $a_module_id);
138 $this->repo->addTooltip($a_tt_id, $a_text, $a_module_id);
146 $this->repo->updateTooltip($a_id, $a_text, $a_tt_id);
153 $comps[
""] =
"- " . $this->
lng->txt(
"help_all") .
" -";
154 foreach ($this->repo->getTooltipComponents($a_module_id) as
$c) {
163 $this->repo->deleteTooltip($a_id);
169 $this->repo->deleteTooltipsOfModule($module_id);
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...