ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 ()
 @inheritDoc More...
 
 getStaticSubItems ()
 @inheritDoc More...
 
- 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

Member Function Documentation

◆ getStaticSubItems()

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

@inheritDoc

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

Definition at line 49 of file ContactMainBarProvider.php.

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'))

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

+ Here is the call graph for this function:

◆ getStaticTopItems()

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

@inheritDoc

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: