ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ 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
33
class
ilHelpViewLayoutProvider
extends
AbstractModificationProvider
34
{
35
use
Hasher
;
36
use
ilHelpDisplayed
;
37
38
public
function
isInterestedInContexts
():
ContextCollection
39
{
40
return
$this->context_collection->
main
();
41
}
42
46
public
function
getMainBarModification
(
47
CalledContexts
$screen_context_stack
48
): ?
MainBarModification
{
49
global
$DIC
;
50
51
if
(!$this->showHelpTool()) {
52
return
null;
53
}
54
55
$ttm = $DIC->help()->internal()->domain()->tooltips();
56
57
$this->
globalScreen
()->collector()->mainmenu()->collectOnce();
58
foreach
($this->
globalScreen
()->collector()->mainmenu()->getRawItems() as $item) {
59
$p = $item->getProviderIdentification();
60
61
$tt_text = $ttm->getMainMenuTooltip($p->getInternalIdentifier());
62
$tt_text = addslashes(str_replace(array(
"\n"
,
"\r"
),
''
, $tt_text));
63
64
if
($tt_text !==
""
&& $item instanceof
hasSymbol
&& $item->
hasSymbol
()) {
65
$item->addSymbolDecorator(
static
function
(
Symbol
$symbol) use ($tt_text):
Symbol
{
66
return
$symbol->
withAdditionalOnLoadCode
(
static
function
(
$id
) use ($tt_text):
string
{
67
return
"il.Tooltip.addToNearest('$id', 'button,a', { context:'', my:'bottom center', at:'top center', text:'$tt_text' });"
;
68
});
69
});
70
}
71
}
72
73
ilTooltipGUI::init
();
74
75
return
null;
76
}
77
}
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
Class MainBar.
Definition:
MainBarModification.php:28
ILIAS\UI\Component\Symbol\Symbol
This describes a symbol.
Definition:
Symbol.php:29
ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen
globalScreen()
Definition:
AbstractProvider.php:45
ilTooltipGUI\init
static init()
Initializes the needed tooltip libraries.
Definition:
class.ilTooltipGUI.php:91
ilHelpViewLayoutProvider\getMainBarModification
getMainBarModification(CalledContexts $screen_context_stack)
No main bar in HTML exports.
Definition:
class.ilHelpViewLayoutProvider.php:46
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:96
Symbol
Hasher
ilHelpDisplayed
$DIC
global $DIC
Definition:
feed.php:28
ModificationProvider
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
Class AbstractModificationProvider.
Definition:
AbstractModificationProvider.php:44
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
hasSymbol()
Definition:
hasSymbolTrait.php:63
CalledContexts
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol\hasSymbol
hasSymbol()
MainBarModification
ilHelpViewLayoutProvider\isInterestedInContexts
isInterestedInContexts()
Definition:
class.ilHelpViewLayoutProvider.php:38
ILIAS\GlobalScreen\Scope\MainMenu\Factory\hasSymbol
Interface hasSymbol Methods for Entries with Symbols.
Definition:
hasSymbol.php:32
AbstractModificationProvider
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ContextCollection
Hasher
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
Definition:
CalledContexts.php:30
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
Definition:
ContextCollection.php:30
ilHelpViewLayoutProvider
HTML export view layout provider, hides main and meta bar.
Definition:
class.ilHelpViewLayoutProvider.php:33
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ILIAS\UI\Component\JavaScriptBindable\withAdditionalOnLoadCode
withAdditionalOnLoadCode(Closure $binder)
Add some onload-code to the component instead of replacing the existing one.
Services
Help
GlobalScreen
classes
class.ilHelpViewLayoutProvider.php
Generated on Wed Sep 10 2025 14:11:30 for ILIAS by
1.8.13 (using
Doxyfile
)