ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\PersonalDesktop\PDMainBarProvider Class Reference

Class PDMainBarProvider. More...

+ Inheritance diagram for ILIAS\PersonalDesktop\PDMainBarProvider:
+ Collaboration diagram for ILIAS\PersonalDesktop\PDMainBarProvider:

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\PersonalDesktop\PDMainBarProvider::getStaticSubItems ( )

@inheritDoc

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

Definition at line 28 of file PDMainBarProvider.php.

28 : array
29 {
32
33 $f = $this->dic->ui()->factory();
34
35 $items = [
36 ];
37
38 $top = StandardTopItemsProvider::getInstance()->getAdministrationIdentification();
39
40 $title = $this->dic->language()->txt("obj_dshs");
41 $objects_by_type = \ilObject2::_getObjectsByType('dshs');
42 $id = (int) reset($objects_by_type)['obj_id'];
43 $references = \ilObject2::_getAllReferences($id);
44 $admin_ref_id = (int) reset($references);
45
46 if ($admin_ref_id > 0) {
47 $action = "ilias.php?baseClass=ilAdministrationGUI&ref_id=" . $admin_ref_id . "&cmd=jump";
48 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard("dshs", $title)
49 ->withIsOutlined(true);
50
51 $items[] = $this->mainmenu->link($this->if->identifier('mm_adm_dshs'))
52 ->withAction($action)
53 ->withParent($top)
54 ->withTitle($title)
55 ->withSymbol($icon)
56 ->withPosition(25)
57 ->withVisibilityCallable(function() use($admin_ref_id){
58 return $this->dic->rbac()->system()->checkAccess('visible,read', $admin_ref_id);
59 });
60 }
61
62
63 return $items;
64 }
static _getObjectsByType($a_obj_type="", $a_owner="")
Get objects by type.
static _getAllReferences($a_id)
get all reference ids of object
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, Vendor\Package\$f, ilObject2\_getAllReferences(), ilObject2\_getObjectsByType(), ILIAS\GlobalScreen\Helper\BasicAccessCheckClosures\getInstance(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), and if.

+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\PersonalDesktop\PDMainBarProvider::getStaticTopItems ( )

@inheritDoc

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

Definition at line 19 of file PDMainBarProvider.php.

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

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