ILIAS  trunk Revision v11.0_alpha-2662-g519ff7d528f
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 (protected 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
 

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(), if, ILIAS\GlobalScreen\Scope\Footer\Factory\withParent(), ILIAS\GlobalScreen\Scope\Footer\Factory\withTitle(), and ILIAS\GlobalScreen\Scope\withVisibilityCallable().

42  : array
43  {
44  if (!$this->dic->settings()->get('mmbr_my_crs_grp', 1)) {
45  return [];
46  }
47 
48  $dic = $this->dic;
49  $access_helper = BasicAccessCheckClosuresSingleton::getInstance();
50 
51  $title = $this->dic->language()->txt("my_courses_groups");
52  $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(
53  \ilUtil::getImagePath("standard/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  }
if(!file_exists('../ilias.ini.php'))
withVisibilityCallable(callable $is_visible)
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
withParent(IdentificationInterface $identification)
ctrl()
Get the interface to the control structure.
Definition: Container.php:63
+ 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: