ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Contact\Provider\ContactMainBarProvider Class Reference

Class ContactMainBarProvider. More...

+ Inheritance diagram for ILIAS\Contact\Provider\ContactMainBarProvider:
+ Collaboration diagram for ILIAS\Contact\Provider\ContactMainBarProvider:

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\Contact\Provider\ContactMainBarProvider::getStaticSubItems ( )

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

Definition at line 49 of file ContactMainBarProvider.php.

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

49  : array
50  {
51  $title = $this->dic->language()->txt("mm_contacts");
52 
53  $icon = $this->dic->ui()->factory()
54  ->symbol()
55  ->icon()
56  ->standard(Standard::CADM, 'contacts');
57 
58 
59  return [
60  $this->mainmenu->link($this->if->identifier('mm_pd_contacts'))
61  ->withTitle($title)
62  ->withAction($this->dic->ctrl()->getLinkTargetByClass([ilDashboardGUI::class, ilContactGUI::class]))
63  ->withParent(StandardTopItemsProvider::getInstance()->getCommunicationIdentification())
64  ->withPosition(20)
65  ->withSymbol($icon)
66  ->withNonAvailableReason($this->dic->ui()->factory()->legacy($this->dic->language()->txt('component_not_active')))
67  ->withAvailableCallable(
68  static function (): bool {
69  return ilBuddySystem::getInstance()->isEnabled();
70  }
71  ),
72  ];
73  }
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
+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Contact\Provider\ContactMainBarProvider::getStaticTopItems ( )

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

Definition at line 40 of file ContactMainBarProvider.php.

40  : array
41  {
42  return [];
43  }

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