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();
56 $show_main_text =
true;
57 if ($this->
user->getLanguage() !==
"de") {
58 $show_main_text =
false;
61 if ($this->
settings->get(
"help_mode") ===
"1") {
62 $show_main_text =
false;
65 if ($this->
user->getPref(
"hide_help_tt")) {
66 $show_main_text =
false;
69 if (!$show_main_text) {
77 if ($this->domain->module()->isAuthoringMode()) {
80 $module_ids = $this->domain->module()->getActiveModules();
82 $text = $this->repo->getTooltipPresentationText(
87 $text .=
"[" . $a_tt_id .
"]";
98 return $this->getTooltipPresentationText($a_type .
"_create");
107 return $this->getTooltipPresentationText($a_item_id);
114 return $this->repo->getAllTooltips($a_comp, $a_module_id);
122 $this->repo->addTooltip($a_tt_id, $a_text, $a_module_id);
130 $this->repo->updateTooltip($a_id, $a_text, $a_tt_id);
137 $comps[
""] =
"- " . $this->
lng->txt(
"help_all") .
" -";
138 foreach ($this->repo->getTooltipComponents($a_module_id) as
$c) {
147 $this->repo->deleteTooltip($a_id);
153 $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...