ILIAS  release_7 Revision v7.30-3-g800a261c036
trait.ilHelpDisplayed.php
Go to the documentation of this file.
1<?php
2
7trait ilHelpDisplayed
8{
14 protected function showHelpTool() : bool
15 {
16 static $show;
17 if (!isset($show)) {
18 global $DIC;
19
20 $user = $DIC->user();
21 $settings = $DIC->settings();
22
23 if ($user->getLanguage() != "de") {
24 return $show = false;
25 }
26
27 //if (ilSession::get("show_help_tool") != "1") {
28 // return $show = false;
29 //}
30
31 if ($settings->get("help_mode") == "2") {
32 return $show = false;
33 }
34
35 if ((defined("OH_REF_ID") && OH_REF_ID > 0)) {
36 return $show = true;
37 } else {
38 $module = (int) $settings->get("help_module");
39 if ($module == 0) {
40 return $show = false;
41 }
42 }
43
44 return $show = true;
45 }
46
47 return $show;
48 }
49}
An exception for terminatinating execution or to throw for unit testing.
global $DIC
Definition: goto.php:24