ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\OrgUnit\Provider\OrgUnitMainBarProvider Class Reference

Class OrgUnitMainBarProvider. More...

+ Inheritance diagram for ILIAS\OrgUnit\Provider\OrgUnitMainBarProvider:
+ Collaboration diagram for ILIAS\OrgUnit\Provider\OrgUnitMainBarProvider:

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\OrgUnit\Provider\OrgUnitMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 26 of file OrgUnitMainBarProvider.php.

26 : array
27 {
28 $this->dic->language()->loadLanguageModule('mst');
29 $items = [];
31 $top = StandardTopItemsProvider::getInstance()->getAdministrationIdentification();
32
33 $title = $this->dic->language()->txt("objs_orgu");
34 $action = "ilias.php?baseClass=ilAdministrationGUI&ref_id=" . ilObjOrgUnit::getRootOrgRefId() . "&cmd=jump";
35 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard('orgu', $title)
36 ->withIsOutlined(true);
37
38 $items[] = $this->mainmenu->link($this->if->identifier('mm_adm_orgu'))
39 ->withAlwaysAvailable(true)
40 ->withAction($action)
41 ->withNonAvailableReason($this->dic->ui()->factory()->legacy("{$this->dic->language()->txt('item_must_be_always_active')}"))
42 ->withParent($top)
43 ->withTitle($title)
44 ->withSymbol($icon)
45 ->withPosition(65)
46 ->withVisibilityCallable(
47 $access_helper->hasAdministrationAccess(function () : bool {
48 return (bool) $this->dic->access()->checkAccess('read', '', ilObjOrgUnit::getRootOrgRefId());
49 }));
50
51 return $items;
52 }
static getRootOrgRefId()
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12

References ILIAS\GlobalScreen\Helper\BasicAccessCheckClosures\getInstance(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), ilObjOrgUnit\getRootOrgRefId(), and if.

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\OrgUnit\Provider\OrgUnitMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 18 of file OrgUnitMainBarProvider.php.

18 : array
19 {
20 return [];
21 }

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