ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
NewsMainBarProvider.php
Go to the documentation of this file.
1
<?php
2
3
namespace
ILIAS\News\Provider
;
4
21
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
22
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
23
29
class
NewsMainBarProvider
extends
AbstractStaticMainMenuProvider
30
{
31
public
function
getStaticTopItems
(): array
32
{
33
return
[];
34
}
35
36
public
function
getStaticSubItems
(): array
37
{
38
$dic
=
$this->dic
;
39
40
$title = $this->dic->
language
()->txt(
"mm_news"
);
41
$icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"nwss"
, $title);
42
43
return
[
44
$this->mainmenu->link($this->
if
->identifier(
'mm_pd_news'
))
45
->withTitle($title)
46
->withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToNews"
)
47
->withParent(
StandardTopItemsProvider::getInstance
()->getCommunicationIdentification())
48
->withPosition(30)
49
->withSymbol($icon)
50
->withNonAvailableReason($this->dic->ui()->factory()->legacy($this->dic->language()->txt(
'component_not_active'
)))
51
->withAvailableCallable(
52
static
function
() use (
$dic
):
bool
{
53
return
!(
$dic
->
settings
()->get(
"block_activated_news"
) === null);
54
}
55
),
56
];
57
}
58
}
StandardTopItemsProvider
ILIAS\News\Provider\NewsMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
NewsMainBarProvider.php:31
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:32
AbstractStaticMainMenuProvider
ILIAS\News\Provider\NewsMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
NewsMainBarProvider.php:36
if
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
confirmReg.php:20
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:61
ILIAS\News\Provider\NewsMainBarProvider
Class NewsMainBarProvider.
Definition:
NewsMainBarProvider.php:29
ILIAS\DI\Container\language
language()
Get interface to the i18n service.
Definition:
Container.php:86
ILIAS\News\Provider
Definition:
NewsMainBarProvider.php:3
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic
Container $dic
Definition:
AbstractStaticMainMenuProvider.php:34
ILIAS\DI\Container\settings
settings()
Get the interface to the settings.
Definition:
Container.php:126
Services
News
classes
Provider
NewsMainBarProvider.php
Generated on Tue Apr 1 2025 22:02:29 for ILIAS by
1.8.13 (using
Doxyfile
)