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

Class ilStaffGlobalScreenProvider. More...

+ Inheritance diagram for ilStaffGlobalScreenProvider:
+ Collaboration diagram for ilStaffGlobalScreenProvider:

Public Member Functions

 __construct (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 ()
 
 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 ()
 

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

ilStaffGlobalScreenProvider::__construct ( Container  $dic)
Parameters
Container$dic

Definition at line 24 of file class.ilStaffGlobalScreenProvider.php.

References getTopItem().

25  {
26  parent::__construct($dic);
27  $this->top_item = (new ilPDGlobalScreenProvider($dic))->getTopItem();
28  }
getTopItem()
Some other components want to provide Items for the main menu which are located at the PD TopTitem by...
Class ilPDGlobalScreenProvider.
+ Here is the call graph for this function:

Member Function Documentation

◆ getStaticSubItems()

ilStaffGlobalScreenProvider::getStaticSubItems ( )

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

Definition at line 56 of file class.ilStaffGlobalScreenProvider.php.

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

56  : array
57  {
58  $dic = $this->dic;
59 
60  return [$this->mainmenu->link($this->if->identifier('mm_pd_mst'))
61  ->withTitle($this->dic->language()->txt("my_staff"))
62  ->withAction("ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToMyStaff")
63  ->withParent($this->getTopItem())
64  ->withPosition(12)
65  ->withAvailableCallable(
66  function () use ($dic) {
67  return (bool) ($dic->settings()->get("enable_my_staff"));
68  }
69  )
70  ->withVisibilityCallable(
71  function () {
72  return (bool) ilMyStaffAccess::getInstance()->hasCurrentUserAccessToMyStaff();
73  }
74  )->withNonAvailableReason($dic->ui()->factory()->legacy("{$dic->language()->txt('component_not_active')}"))];
75  }
getTopItem()
Some other components want to provide Items for the main menu which are located at the PD TopTitem by...
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()

ilStaffGlobalScreenProvider::getStaticTopItems ( )

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

Definition at line 47 of file class.ilStaffGlobalScreenProvider.php.

47  : array
48  {
49  return [];
50  }

◆ getTopItem()

ilStaffGlobalScreenProvider::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 38 of file class.ilStaffGlobalScreenProvider.php.

References $top_item.

Referenced by __construct(), and getStaticSubItems().

+ Here is the caller graph for this function:

Field Documentation

◆ $top_item

ilStaffGlobalScreenProvider::$top_item
protected

Definition at line 18 of file class.ilStaffGlobalScreenProvider.php.

Referenced by getTopItem().


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