ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
PushNotificationMainBarProvider.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Notifications\Provider
;
22
23
use
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
;
24
use
ILIAS\MainMenu\Provider\StandardTopItemsProvider
;
25
use
ILIAS\UI\Component\Symbol\Icon\Standard
;
26
use
ilNotificationGUI
;
27
use
ilPersonalNotificationsSettingsGUI
;
28
use
ilSetting
;
29
30
class
PushNotificationMainBarProvider
extends
AbstractStaticMainMenuProvider
31
{
32
public
function
getStaticTopItems
(): array
33
{
34
return
[];
35
}
36
37
public
function
getStaticSubItems
(): array
38
{
39
$this->dic->language()->loadLanguageModule(
'notifications_adm'
);
40
return
[
41
$this->mainmenu->link($this->
if
->identifier(
'mm_pd_push'
))
42
->withTitle($this->dic->language()->txt(
'push_settings'
))
43
->withAction($this->dic->ctrl()->getLinkTargetByClass([ilNotificationGUI::class, ilPersonalNotificationsSettingsGUI::class]))
44
->withParent(
StandardTopItemsProvider::getInstance
()->getCommunicationIdentification())
45
->withPosition(60)
46
->withSymbol($this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::NOTA
,
'push_notification'
))
47
->withAvailableCallable(
48
static
fn():
bool
=> ((
new
ilSetting
(
'notifications'
))->
get
(
'enable_push'
) ===
'1'
)
49
)
50
];
51
52
}
53
}
ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Interface StaticMainMenuProvider.
Definition:
AbstractStaticMainMenuProvider.php:34
ILIAS\MainMenu\Provider\StandardTopItemsProvider
Class StandardTopItemsProvider.
Definition:
StandardTopItemsProvider.php:38
ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance
static getInstance()
Definition:
StandardTopItemsProvider.php:59
ILIAS\Notifications\Provider\PushNotificationMainBarProvider
Definition:
PushNotificationMainBarProvider.php:31
ILIAS\Notifications\Provider\PushNotificationMainBarProvider\getStaticSubItems
getStaticSubItems()
Definition:
PushNotificationMainBarProvider.php:37
ILIAS\Notifications\Provider\PushNotificationMainBarProvider\getStaticTopItems
getStaticTopItems()
Definition:
PushNotificationMainBarProvider.php:32
ilNotificationGUI
Definition:
class.ilNotificationGUI.php:22
ilPersonalNotificationsSettingsGUI
@ilCtrl_IsCalledBy ilPersonalNotificationsSettingsGUI: ilNotificationGUI
Definition:
class.ilPersonalNotificationsSettingsGUI.php:34
ilSetting
ILIAS Setting Class.
Definition:
class.ilSetting.php:27
ILIAS\UI\Component\Symbol\Icon\Standard
This describes the specific behavior of an ILIAS standard icon.
Definition:
Standard.php:27
ILIAS\UI\Component\Symbol\Icon\Standard\NOTA
const NOTA
Definition:
Standard.php:182
ILIAS\Notifications\Provider
Definition:
AwarenessToastProvider.php:21
if
if(!file_exists('../ilias.ini.php'))
Definition:
sessioncheck.php:23
components
ILIAS
Notifications
classes
Provider
PushNotificationMainBarProvider.php
Generated on Sat Oct 18 2025 23:03:30 for ILIAS by
1.9.4 (using
Doxyfile
)