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

Detailed Description

Member Function Documentation

◆ getStaticSubItems()

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

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

Definition at line 30 of file ContactMainBarProvider.php.

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

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
+ Here is the call graph for this function:

◆ getStaticTopItems()

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

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: