ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilContactGlobalScreenProvider Class Reference

Class ilContactGlobalScreenProvider. More...

+ Inheritance diagram for ilContactGlobalScreenProvider:
+ Collaboration diagram for ilContactGlobalScreenProvider:

Public Member Functions

 __construct (\ILIAS\DI\Container $dic)
 
 getTopItem ()
 Some other components want to provide Items for the main menu which are located at the PD TopTitem by default. More...
 
 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 ()
 

Protected Attributes

 $top_item
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
 $dic
 
 $if
 
 $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 $dic
 

Additional Inherited Members

- Data Fields inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\StaticMainMenuProvider
const PURPOSE_MAINBAR = 'mainmenu'
 
- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilContactGlobalScreenProvider::__construct ( \ILIAS\DI\Container  $dic)

Definition at line 20 of file class.ilContactGlobalScreenProvider.php.

21 {
22 parent::__construct($dic);
23 $this->top_item = (new ilPDGlobalScreenProvider($dic))->getTopItem();
24 }
getTopItem()
Some other components want to provide Items for the main menu which are located at the PD TopTitem by...
Class ilPDGlobalScreenProvider.

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, and getTopItem().

+ Here is the call graph for this function:

Member Function Documentation

◆ getStaticSubItems()

ilContactGlobalScreenProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 52 of file class.ilContactGlobalScreenProvider.php.

52 : array
53 {
54 return [$this->mainmenu->link($this->if->identifier('mm_pd_contacts'))
55 ->withTitle($this->dic->language()->txt("mail_addressbook"))
56 ->withAction("ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToContacts")
57 ->withParent($this->getTopItem())
58 ->withPosition(9)
59 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('component_not_active')}"))
60 ->withAvailableCallable(
61 function () {
62 return (bool) (ilBuddySystem::getInstance()->isEnabled());
63 }
64 )];
65 }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12

References ilBuddySystem\getInstance(), getTopItem(), and if.

+ Here is the call graph for this function:

◆ getStaticTopItems()

ilContactGlobalScreenProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 43 of file class.ilContactGlobalScreenProvider.php.

43 : array
44 {
45 return [];
46 }

◆ getTopItem()

ilContactGlobalScreenProvider::getTopItem ( )

Some other components want to provide Items for the main menu which are located at the PD TopTitem by default.

Therefore we have to provide our TopTitem Identification for others

Returns
IdentificationInterface

Definition at line 34 of file class.ilContactGlobalScreenProvider.php.

References $top_item.

Referenced by __construct(), and getStaticSubItems().

+ Here is the caller graph for this function:

Field Documentation

◆ $top_item

ilContactGlobalScreenProvider::$top_item
protected

Definition at line 17 of file class.ilContactGlobalScreenProvider.php.

Referenced by getTopItem().


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