ILIAS  release_8 Revision v8.23
ILIAS\Membership\GlobalScreen\MembershipMainBarProvider Class Reference

Main menu entry for derived tasks. More...

+ Inheritance diagram for ILIAS\Membership\GlobalScreen\MembershipMainBarProvider:
+ Collaboration diagram for ILIAS\Membership\GlobalScreen\MembershipMainBarProvider:

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
 globalScreen ()
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider
Container $dic
 
IdentificationProviderInterface $if
 
MainMenuItemFactory $mainmenu
 
- Protected Attributes inherited from ILIAS\GlobalScreen\Provider\AbstractProvider
Container $dic
 

Detailed Description

Main menu entry for derived tasks.

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 29 of file class.MembershipMainBarProvider.php.

Member Function Documentation

◆ getStaticSubItems()

ILIAS\Membership\GlobalScreen\MembershipMainBarProvider::getStaticSubItems ( )

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

Definition at line 42 of file class.MembershipMainBarProvider.php.

References ILIAS\GlobalScreen\Scope\MainMenu\Provider\AbstractStaticMainMenuProvider\$dic, ILIAS\DI\Container\ctrl(), ilUtil\getImagePath(), ILIAS\GlobalScreen\Helper\BasicAccessCheckClosuresSingleton\getInstance(), ILIAS\MainMenu\Provider\StandardTopItemsProvider\getInstance(), and if.

42  : array
43  {
44  if (!$this->dic->settings()->get('mmbr_my_crs_grp', 1)) {
45  return [];
46  }
47 
48  $dic = $this->dic;
50 
51  $title = $this->dic->language()->txt("my_courses_groups");
52  $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(
53  \ilUtil::getImagePath("icon_crgr.svg"),
54  $title
55  );
56 
57  // derived tasks list
58  $entries[] = $this->mainmenu->link($this->if->identifier('mm_memberships'))
59  ->withTitle($title)
60  ->withPosition(40)
61  ->withSymbol($icon)
62  ->withAction($dic->ctrl()->getLinkTargetByClass(["ilMembershipOverviewGUI"], ""))
63  ->withParent(StandardTopItemsProvider::getInstance()->getRepositoryIdentification())
64  ->withVisibilityCallable($access_helper->isUserLoggedIn($access_helper->isUserLoggedIn($access_helper->isRepositoryReadable())));
65 
66  return $entries;
67  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: confirmReg.php:20
ctrl()
Get the interface to the control structure.
Definition: Container.php:54
+ Here is the call graph for this function:

◆ getStaticTopItems()

ILIAS\Membership\GlobalScreen\MembershipMainBarProvider::getStaticTopItems ( )

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

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

34  : array
35  {
36  return [];
37  }

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