ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
CalendarMainBarProvider.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\Calendar\Provider
;
20
21
use
ilCalendarSettings
;
22
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
23
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
24
29
class
CalendarMainBarProvider
extends
AbstractStaticMainMenuProvider
30
{
34
public
function
getStaticTopItems
(): array
35
{
36
return
[];
37
}
38
42
public
function
getStaticSubItems
(): array
43
{
44
$title = $this->dic->language()->txt(
"mm_calendar"
);
45
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"cals"
, $title);
46
47
return
[
48
$this->mainmenu->link($this->
if
->identifier(
'mm_pd_cal'
))
49
->
withTitle
($title)
50
->withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToCalendar"
)
51
->withParent(
StandardTopItemsProvider::getInstance
()->getPersonalWorkspaceIdentification())
52
->withPosition(30)
53
->withSymbol($icon)
54
->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content(
"{$this->dic->language()->txt('component_not_active')}"
))
55
->
withAvailableCallable
(
56
function
() {
57
$settings =
ilCalendarSettings::_getInstance
();
58
59
return
$settings->isEnabled();
60
}
61
),
62
];
63
}
64
}
ilCalendarSettings\_getInstance
static _getInstance()
Definition:
class.ilCalendarSettings.php:93
StandardTopItemsProvider
AbstractStaticMainMenuProvider
ILIAS\Calendar\Provider
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
CalendarMainBarProvider.php:19
if
if(!file_exists('../ilias.ini.php'))
Definition:
sessioncheck.php:23
ILIAS\GlobalScreen\Scope\withAvailableCallable
withAvailableCallable(callable $is_available)
Definition:
VisibilityAvailabilityTrait.php:63
AbstractStaticMainMenuProvider
ILIAS\GlobalScreen\Provider\Provider\CalendarMainBarProvider
Class CalendarMainBarProvider.
Definition:
CalendarMainBarProvider.php:29
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:59
ilCalendarSettings
ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle
withTitle(string $title)
Definition:
hasTitleTrait.php:35
ILIAS\GlobalScreen\Provider\Provider\CalendarMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
CalendarMainBarProvider.php:34
ILIAS\GlobalScreen\Provider\Provider\CalendarMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
CalendarMainBarProvider.php:42
components
ILIAS
Calendar
classes
Provider
CalendarMainBarProvider.php
Generated on Sun Apr 13 2025 23:02:26 for ILIAS by
1.8.13 (using
Doxyfile
)