ILIAS  release_7 Revision v7.30-3-g800a261c036
class.MembershipMainBarProvider.php
Go to the documentation of this file.
2
7
14{
18 public function getStaticTopItems() : array
19 {
20 return [];
21 }
22
23
27 public function getStaticSubItems() : array
28 {
29 if (!$this->dic->settings()->get('mmbr_my_crs_grp', 1)) {
30 return [];
31 }
32
35
36 $title = $this->dic->language()->txt("my_courses_groups");
37 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\ilUtil::getImagePath("outlined/icon_crgr.svg"), $title);
38
39 // derived tasks list
40 $entries[] = $this->mainmenu->link($this->if->identifier('mm_memberships'))
41 ->withTitle($title)
42 ->withPosition(40)
43 ->withSymbol($icon)
44 ->withAction($dic->ctrl()->getLinkTargetByClass(["ilMembershipOverviewGUI"], ""))
45 ->withParent(StandardTopItemsProvider::getInstance()->getRepositoryIdentification())
46 ->withVisibilityCallable($access_helper->isUserLoggedIn($access_helper->isUserLoggedIn($access_helper->isRepositoryReadable())));
47
48 return $entries;
49 }
50}
An exception for terminatinating execution or to throw for unit testing.
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:19
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Definition: confirmReg.php:12