ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
s
t
w
+
Functions
_
a
b
c
f
g
h
i
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
2
use
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
;
3
use
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
;
4
use
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
;
5
use
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
;
6
use
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
;
7
use
ILIAS\UI\Component\MainControls\MainBar
;
8
14
class
DashboardLayoutProvider
extends
AbstractModificationProvider
implements
ModificationProvider
15
{
19
protected
$data_collection
;
20
24
public
function
isInterestedInContexts
() :
ContextCollection
25
{
26
return
$this->context_collection->
desktop
();
27
}
28
29
public
function
getMainBarModification
(
CalledContexts
$screen_context_stack) : ?
MainBarModification
30
{
31
$this->data_collection = $screen_context_stack->
current
()->getAdditionalData();
32
if
(!$this->data_collection->is(\
ilDashboardGUI::DISENGAGE_MAINBAR
,
true
)) {
33
return
null;
34
}
35
36
return
$this->
globalScreen
()->layout()->factory()->mainbar()
37
->withModification(
38
function
(
MainBar
$mainbar) : ?
MainBar
{
39
return
$mainbar->
withActive
($mainbar::NONE_ACTIVE);
40
}
41
)
42
->withLowPriority();
43
}
44
}
DashboardLayoutProvider
Class DashboardLayoutProvider.
Definition:
DashboardLayoutProvider.php:14
ILIAS\GlobalScreen\Scope\Layout\Factory\MainBarModification
Class MainBar.
Definition:
MainBarModification.php:10
MainBar
ILIAS\UI\Component\MainControls\MainBar
This describes the MainBar.
Definition:
MainBar.php:15
ILIAS\GlobalScreen\Provider\AbstractProvider\globalScreen
globalScreen()
Definition:
AbstractProvider.php:36
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection\desktop
desktop()
Definition:
ContextCollection.php:114
ModificationProvider
ilDashboardGUI\DISENGAGE_MAINBAR
const DISENGAGE_MAINBAR
Definition:
class.ilDashboardGUI.php:30
DashboardLayoutProvider\isInterestedInContexts
isInterestedInContexts()
Definition:
DashboardLayoutProvider.php:24
ILIAS\GlobalScreen\Scope\Layout\Provider\AbstractModificationProvider
Class AbstractModificationProvider.
Definition:
AbstractModificationProvider.php:24
CalledContexts
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts\current
current()
Definition:
CalledContexts.php:21
MainBarModification
AbstractModificationProvider
ContextCollection
ILIAS\GlobalScreen\ScreenContext\Stack\CalledContexts
Class CalledContexts.
Definition:
CalledContexts.php:10
DashboardLayoutProvider\$data_collection
$data_collection
Definition:
DashboardLayoutProvider.php:19
ILIAS\GlobalScreen\ScreenContext\Stack\ContextCollection
Definition:
ContextCollection.php:11
DashboardLayoutProvider\getMainBarModification
getMainBarModification(CalledContexts $screen_context_stack)
Definition:
DashboardLayoutProvider.php:29
ILIAS\GlobalScreen\Scope\Layout\Provider\ModificationProvider
Interface ModificationProvider.
Definition:
ModificationProvider.php:22
ILIAS\UI\Component\MainControls\MainBar\withActive
withActive(string $active)
Services
Dashboard
GlobalScreen
classes
DashboardLayoutProvider.php
Generated on Fri Apr 18 2025 20:01:23 for ILIAS by
1.8.13 (using
Doxyfile
)