ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
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 (protected 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
 

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 ilBuddySystem\getInstance(), if, ILIAS\GlobalScreen\Scope\Footer\Factory\withParent(), and ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle().

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()->content($this->dic->language()->txt('component_not_active')))
67  ->withAvailableCallable(
68  static fn(): bool => ilBuddySystem::getInstance()->isEnabled()
69  ),
70  ];
71  }
if(!file_exists('../ilias.ini.php'))
withParent(IdentificationInterface $identification)
+ 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: