ILIAS  release_8 Revision v8.23
ILIAS\News\Provider\NewsMainBarProvider Class Reference

Class NewsMainBarProvider. More...

+ Inheritance diagram for ILIAS\News\Provider\NewsMainBarProvider:
+ Collaboration diagram for ILIAS\News\Provider\NewsMainBarProvider:

Public Member Functions

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

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
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

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

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

Definition at line 36 of file NewsMainBarProvider.php.

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), if, ILIAS\DI\Container\language(), and ILIAS\DI\Container\settings().

36  : 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  }
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
language()
Get interface to the i18n service.
Definition: Container.php:86
settings()
Get the interface to the settings.
Definition: Container.php:126
+ Here is the call graph for this function:

◆ getStaticTopItems()

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

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

Definition at line 31 of file NewsMainBarProvider.php.

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

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