ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.MembershipMainBarProvider.php
Go to the documentation of this file.
1<?php
2
20
24
30{
34 public function getStaticTopItems(): array
35 {
36 return [];
37 }
38
42 public function getStaticSubItems(): array
43 {
44 if (!$this->dic->settings()->get('mmbr_my_crs_grp', 1)) {
45 return [];
46 }
47
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 }
68}
ctrl()
Get the interface to the control structure.
Definition: Container.php:63
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))