ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
DashboardLayoutProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\DI\Container
;
22
use
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
;
23
use
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
;
24
use
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
;
25
use
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
;
26
use
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
;
27
use
ILIAS\UI\Component\MainControls\MainBar
;
28
use
ILIAS\GlobalScreen\ScreenContext\AdditionalData\Collection
;
29
30
class
DashboardLayoutProvider
extends
AbstractModificationProvider
implements
ModificationProvider
31
{
32
protected
?
Collection
$data_collection
;
33
34
public
function
__construct
(
Container
$dic
)
35
{
36
$dic->
ui
()->mainTemplate()->addJavaScript(
'assets/js/modal-confirmation.js'
);
37
parent::__construct
($dic);
38
}
39
40
public
function
isInterestedInContexts
():
ContextCollection
41
{
42
return
$this->context_collection->
desktop
();
43
}
44
45
public
function
getMainBarModification
(
CalledContexts
$screen_context_stack): ?
MainBarModification
46
{
47
$this->data_collection = $screen_context_stack->
current
()->getAdditionalData();
48
if
(!$this->data_collection->is(
ilDashboardGUI::DISENGAGE_MAINBAR
,
true
)) {
49
return
null
;
50
}
51
52
return
$this->
globalScreen
()->layout()->factory()->mainbar()
53
->withModification(
54
function
(?
MainBar
$mainbar): ?
MainBar
{
55
return
$mainbar?->
withActive
($mainbar::NONE_ACTIVE);
56
}
57
)
58
->withLowPriority();
59
}
60
}
DashboardLayoutProvider
Definition:
DashboardLayoutProvider.php:30
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
Class MainBar.
Definition:
MainBarModification.php:29
MainBar
ILIAS\UI\Component\MainControls\MainBar
This describes the MainBar.
Definition:
MainBar.php:33
ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen
globalScreen()
Definition:
AbstractProvider.php:38
DashboardLayoutProvider\$data_collection
Collection $data_collection
Definition:
DashboardLayoutProvider.php:32
ILIAS\GlobalScreen\ScreenContext\AdditionalData\Collection
Class Collection.
Definition:
Collection.php:28
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\desktop
desktop()
Definition:
ContextCollection.php:100
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:35
DashboardLayoutProvider\__construct
__construct(Container $dic)
Definition:
DashboardLayoutProvider.php:34
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:144
ModificationProvider
Container
ilDashboardGUI\DISENGAGE_MAINBAR
const DISENGAGE_MAINBAR
Definition:
class.ilDashboardGUI.php:40
DashboardLayoutProvider\isInterestedInContexts
isInterestedInContexts()
Definition:
DashboardLayoutProvider.php:40
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
Class AbstractModificationProvider.
Definition:
AbstractModificationProvider.php:45
CalledContexts
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current
current()
Definition:
CalledContexts.php:33
MainBarModification
AbstractModificationProvider
ContextCollection
Collection
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
Definition:
CalledContexts.php:29
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
Definition:
ContextCollection.php:30
DashboardLayoutProvider\getMainBarModification
getMainBarModification(CalledContexts $screen_context_stack)
Definition:
DashboardLayoutProvider.php:45
$dic
$dic
Definition:
result.php:31
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
Interface ModificationProvider.
Definition:
ModificationProvider.php:40
ILIAS\DI\Container\ui
ui()
Get the interface to get services from UI framework.
Definition:
Container.php:127
ILIAS\UI\Component\MainControls\MainBar\withActive
withActive(string $active)
components
ILIAS
Dashboard
GlobalScreen
classes
DashboardLayoutProvider.php
Generated on Sun Aug 31 2025 23:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)