ILIAS  release_8 Revision v8.24
trait.ilHelpDisplayed.php
Go to the documentation of this file.
1<?php
2
23trait ilHelpDisplayed
24{
25 protected function showHelpTool(): bool
26 {
27 static $show;
28
29 if (!isset($show)) {
30 global $DIC;
31
32 $user = $DIC->user();
33 $settings = $DIC->settings();
34
35 if ($user->getLanguage() !== "de") {
36 return $show = false;
37 }
38
39 if ($settings->get("help_mode") === "2") {
40 return $show = false;
41 }
42
43 if (defined("OH_REF_ID") && (int) OH_REF_ID > 0) {
44 return $show = true;
45 } else {
46 $module = (int) $settings->get("help_module");
47 if ($module === 0) {
48 return $show = false;
49 }
50 }
51
52 return $show = true;
53 }
54
55 return $show;
56 }
57}
global $DIC
Definition: feed.php:28
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200