ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
PresentationManager.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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(
33  InternalDomainService $domain
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 }