ILIAS  release_7 Revision v7.30-3-g800a261c036
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 (Container $dic)
 @inheritDoc More...
 
 getFullyQualifiedClassName ()
 @inheritDoc More...
 
 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
 $dic
 
 $if
 
 $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

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

@inheritDoc

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

Definition at line 30 of file ContactMainBarProvider.php.

30 : array
31 {
32 $title = $this->dic->language()->txt("mm_contacts");
33
34 $icon = $this->dic->ui()->factory()
35 ->symbol()
36 ->icon()
37 ->standard(Standard::CADM, 'contacts')->withIsOutlined(true);
38
39
40 return [
41 $this->mainmenu->link($this->if->identifier('mm_pd_contacts'))
42 ->withTitle($title)
43 ->withAction($this->dic->ctrl()->getLinkTargetByClass([ilDashboardGUI::class, ilContactGUI::class]))
44 ->withParent(StandardTopItemsProvider::getInstance()->getCommunicationIdentification())
45 ->withPosition(20)
46 ->withSymbol($icon)
47 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
48 ->withAvailableCallable(
49 function () {
50 return (bool) (ilBuddySystem::getInstance()->isEnabled());
51 }
52 ),
53 ];
54 }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12

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 21 of file ContactMainBarProvider.php.

21 : array
22 {
23 return [];
24 }

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