ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
 $dic
 
 $if
 
 $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

ILIAS\News\Provider\NewsMainBarProvider::getStaticSubItems ( )

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

Definition at line 26 of file NewsMainBarProvider.php.

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

26  : array
27  {
28  $dic = $this->dic;
29 
30  $title = $this->dic->language()->txt("mm_news");
31  $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("nwss", $title)->withIsOutlined(true);
32 
33  return [
34  $this->mainmenu->link($this->if->identifier('mm_pd_news'))
35  ->withTitle($title)
36  ->withAction("ilias.php?baseClass=ilDashboardGUI&cmd=jumpToNews")
37  ->withParent(StandardTopItemsProvider::getInstance()->getCommunicationIdentification())
38  ->withPosition(30)
39  ->withSymbol($icon)
40  ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
41  ->withAvailableCallable(
42  function () use ($dic) {
43  return ($dic->settings()->get("block_activated_news"));
44  }
45  ),
46  ];
47  }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\News\Provider\NewsMainBarProvider::getStaticTopItems ( )

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

Definition at line 17 of file NewsMainBarProvider.php.

17  : array
18  {
19  return [];
20  }

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