ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
PresentationManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25
27{
28 protected \ILIAS\Help\Module\ModuleManager $module;
29 protected \ilObjUser $user;
30 protected \ilSetting $settings;
31
32 public function __construct(
34 ) {
35 $this->settings = $domain->settings();
36 $this->user = $domain->user();
37 $this->module = $domain->module();
38 }
39
40
41 public function isHelpActive(): bool
42 {
43 return $this->module->isHelpActive();
44 }
45
46 public function showTool(): bool
47 {
48 if ($this->settings->get("help_mode") === "2") {
49 return false;
50 }
51 return $this->isHelpActive();
52 }
53
54 public function showTooltips(): bool
55 {
56 return $this->module->areTooltipsActive();
57 }
58
59}
__construct(InternalDomainService $domain)