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

Class ilAdmGlobalScreenProvider. More...

+ Inheritance diagram for ilAdmGlobalScreenProvider:
+ Collaboration diagram for ilAdmGlobalScreenProvider:

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

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

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

21  {
22  parent::__construct($dic);
23  $this->top_item = $this->if->identifier('adm');
24  }

Member Function Documentation

◆ getStaticSubItems()

ilAdmGlobalScreenProvider::getStaticSubItems ( )

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

Definition at line 61 of file class.ilAdmGlobalScreenProvider.php.

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

61  : array
62  {
63  $dic = $this->dic;
64 
65  $entries[] = $this->globalScreen()
66  ->mainmenu()
67  ->complex($this->if->identifier('adm_content'))
68  ->withAsyncContentURL("ilias.php?baseClass=ilAdministrationGUI&cmd=getDropDown&cmdMode=asynch")
69  ->withParent($this->getTopItem())
70  ->withAlwaysAvailable(true)
71  ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('item_must_be_always_active')}"))
72  ->withVisibilityCallable(
73  function () use ($dic) {
74  return (bool) ($dic->rbac()->system()->checkAccess("visible", SYSTEM_FOLDER_ID));
75  }
76  )->withAvailableCallable(
77  function () use ($dic) {
78  return ($dic->user()->getId() != ANONYMOUS_USER_ID);
79  }
80  );
81 
82  return $entries;
83  }
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12
getTopItem()
Some other components want to provide Items for the main menu which are located at the PD TopTitem by...
+ Here is the call graph for this function:

◆ getStaticTopItems()

ilAdmGlobalScreenProvider::getStaticTopItems ( )

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

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

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

43  : array
44  {
45  $dic = $this->dic;
46 
47  return [$this->mainmenu->topParentItem($this->getTopItem())
48  ->withTitle($this->dic->language()->txt("administration"))
49  ->withPosition(3)
50  ->withVisibilityCallable(
51  function () use ($dic) {
52  return (bool) ($dic->access()->checkAccess('visible', '', SYSTEM_FOLDER_ID));
53  }
54  )];
55  }
getTopItem()
Some other components want to provide Items for the main menu which are located at the PD TopTitem by...
+ Here is the call graph for this function:

◆ getTopItem()

ilAdmGlobalScreenProvider::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.ilAdmGlobalScreenProvider.php.

References $top_item.

Referenced by getStaticSubItems(), and getStaticTopItems().

+ Here is the caller graph for this function:

Field Documentation

◆ $top_item

ilAdmGlobalScreenProvider::$top_item
protected

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

Referenced by getTopItem().


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