ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
class.ilHelpViewLayoutProvider.php
Go to the documentation of this file.
1
<?php
2
19
use
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
;
20
use
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
;
21
use
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
;
22
use
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
;
23
use
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
;
24
use
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
;
25
use
ILIAS\UI\Component\JavaScriptBindable
;
26
use
ILIAS\UI\Component\Symbol\Symbol
;
27
use
ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher
;
28
use
ILIAS\GlobalScreen\Scope\isDecorateable
;
29
34
class
ilHelpViewLayoutProvider
extends
AbstractModificationProvider
35
{
36
use
Hasher
;
37
use
ilHelpDisplayed
;
38
39
public
function
isInterestedInContexts
():
ContextCollection
40
{
41
return
$this->context_collection->
main
();
42
}
43
47
public
function
getMainBarModification
(
48
CalledContexts
$screen_context_stack
49
): ?
MainBarModification
{
50
global
$DIC
;
51
52
if
(!$this->showHelpTool()) {
53
return
null
;
54
}
55
56
$f
= $DIC->ui()->factory();
57
$ttm = $DIC->help()->internal()->domain()->tooltips();
58
59
$this->
globalScreen
()->collector()->mainmenu()->collectOnce();
60
foreach
($this->
globalScreen
()->collector()->mainmenu()->getRawItems() as $item) {
61
if
($item instanceof
isDecorateable
) {
62
$p = $item->getProviderIdentification();
63
64
$tt_text = $ttm->getMainMenuTooltip($p->getInternalIdentifier());
65
$tt_text = addslashes(str_replace(array(
"\n"
,
"\r"
),
''
, $tt_text));
66
if
($tt_text !==
""
) {
67
//$item->withTopics($DIC->ui()->factory()->helpTopics($p->getInternalIdentifier()));
68
$item->withTopics(...$DIC->ui()->factory()->helpTopics($tt_text));
69
}
70
}
71
}
72
73
return
null
;
74
}
75
}
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
Class MainBar.
Definition:
MainBarModification.php:29
ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen
globalScreen()
Definition:
AbstractProvider.php:38
ilHelpViewLayoutProvider\getMainBarModification
getMainBarModification(CalledContexts $screen_context_stack)
No main bar in HTML exports.
Definition:
class.ilHelpViewLayoutProvider.php:47
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\main
main()
Definition:
ContextCollection.php:92
Symbol
Hasher
ilHelpDisplayed
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ModificationProvider
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
Class AbstractModificationProvider.
Definition:
AbstractModificationProvider.php:45
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
hasSymbol()
Definition:
hasSymbolTrait.php:63
CalledContexts
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
MainBarModification
ilHelpViewLayoutProvider\isInterestedInContexts
isInterestedInContexts()
Definition:
class.ilHelpViewLayoutProvider.php:39
AbstractModificationProvider
ContextCollection
Hasher
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
isDecorateable
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
Definition:
CalledContexts.php:29
ILIAS\GlobalScreen\Scope\isDecorateable
Definition:
isDecorateable.php:29
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
Definition:
ContextCollection.php:30
ilHelpViewLayoutProvider
HTML export view layout provider, hides main and meta bar.
Definition:
class.ilHelpViewLayoutProvider.php:34
components
ILIAS
Help
GlobalScreen
classes
class.ilHelpViewLayoutProvider.php
Generated on Sun Aug 31 2025 23:03:06 for ILIAS by
1.8.13 (using
Doxyfile
)