ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Notifications\Provider\PushNotificationMainBarProvider Class Reference
+ Inheritance diagram for ILIAS\Notifications\Provider\PushNotificationMainBarProvider:
+ Collaboration diagram for ILIAS\Notifications\Provider\PushNotificationMainBarProvider:

Public Member Functions

 getStaticTopItems ()
 
 getStaticSubItems ()
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
 __construct (Container $dic)
 @inheritDoc More...
 
 getAllIdentifications ()
 @inheritDoc More...
 
 provideTypeInformation ()
 @inheritDoc More...
 
- Public Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 __construct (protected Container $dic)
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getFullyQualifiedClassName ()
 
 getProviderNameForPresentation ()
 
 getStaticTopItems ()
 
 getStaticSubItems ()
 
 provideTypeInformation ()
 
 getAllIdentifications ()
 

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Container $dic
 
IdentificationProviderInterface $if
 
MainMenuItemFactory $mainmenu
 

Detailed Description

Definition at line 30 of file PushNotificationMainBarProvider.php.

Member Function Documentation

◆ getStaticSubItems()

ILIAS\Notifications\Provider\PushNotificationMainBarProvider::getStaticSubItems ( )
Returns
isItem[] These are Entries which will be available for configuration.

Implements ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider.

Definition at line 37 of file PushNotificationMainBarProvider.php.

37 : 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 }
ILIAS Setting Class.
if(!file_exists('../ilias.ini.php'))

References ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, and ILIAS\UI\Component\Symbol\Icon\Standard\NOTA.

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Notifications\Provider\PushNotificationMainBarProvider::getStaticTopItems ( )
Returns
TopParentItem[] These are Slates which will be available for configuration.

Implements ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider.

Definition at line 32 of file PushNotificationMainBarProvider.php.

32 : array
33 {
34 return [];
35 }

The documentation for this class was generated from the following file: