ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
DashboardLayoutProvider.php
Go to the documentation of this file.
1
<?php
18
use
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
;
19
use
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
;
20
use
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
;
21
use
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
;
22
use
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
;
23
use
ILIAS\UI\Component\MainControls\MainBar
;
24
30
class
DashboardLayoutProvider
extends
AbstractModificationProvider
implements
ModificationProvider
31
{
35
protected
$data_collection
;
36
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 = null) : ?
MainBar
{
55
return
$mainbar !== null ? $mainbar->
withActive
($mainbar::NONE_ACTIVE) : null;
56
}
57
)
58
->withLowPriority();
59
}
60
}
DashboardLayoutProvider
Class DashboardLayoutProvider.
Definition:
DashboardLayoutProvider.php:30
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
Class MainBar.
Definition:
MainBarModification.php:28
MainBar
ILIAS\UI\Component\MainControls\MainBar
This describes the MainBar.
Definition:
MainBar.php:16
ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen
globalScreen()
Definition:
AbstractProvider.php:51
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\desktop
desktop()
Definition:
ContextCollection.php:113
ModificationProvider
ilDashboardGUI\DISENGAGE_MAINBAR
const DISENGAGE_MAINBAR
Definition:
class.ilDashboardGUI.php:30
DashboardLayoutProvider\isInterestedInContexts
isInterestedInContexts()
Definition:
DashboardLayoutProvider.php:40
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
Class AbstractModificationProvider.
Definition:
AbstractModificationProvider.php:43
CalledContexts
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current
current()
Definition:
CalledContexts.php:38
MainBarModification
AbstractModificationProvider
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ContextCollection
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
Class CalledContexts.
Definition:
CalledContexts.php:31
DashboardLayoutProvider\$data_collection
$data_collection
Definition:
DashboardLayoutProvider.php:35
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
Definition:
ContextCollection.php:29
DashboardLayoutProvider\getMainBarModification
getMainBarModification(CalledContexts $screen_context_stack)
Definition:
DashboardLayoutProvider.php:45
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
Interface ModificationProvider.
Definition:
ModificationProvider.php:40
ILIAS\UI\Component\MainControls\MainBar\withActive
withActive(string $active)
Services
Dashboard
GlobalScreen
classes
DashboardLayoutProvider.php
Generated on Sat Apr 19 2025 21:01:28 for ILIAS by
1.8.13 (using
Doxyfile
)