ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
trait.ilHelpDisplayed.php
Go to the documentation of this file.
1
<?
php
2
7
trait 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
}
php
An exception for terminatinating execution or to throw for unit testing.
$DIC
global $DIC
Definition:
goto.php:24
Services
Help
GlobalScreen
classes
trait.ilHelpDisplayed.php
Generated on Sat Oct 4 2025 21:01:02 for ILIAS by
1.9.4 (using
Doxyfile
)