ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.MembershipMainBarProvider.php
Go to the documentation of this file.
2
6
13{
14
18 public function getStaticTopItems() : array
19 {
20 return [];
21 }
22
23
27 public function getStaticSubItems() : array
28 {
31
32 $title = $this->dic->language()->txt("my_courses_groups");
33 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\ilUtil::getImagePath("outlined/icon_crgr.svg"), $title);
34
35 // derived tasks list
36 $entries[] = $this->mainmenu->link($this->if->identifier('mm_memberships'))
37 ->withTitle($title)
38 ->withPosition(40)
39 ->withSymbol($icon)
40 ->withAction($dic->ctrl()->getLinkTargetByClass(["ilMembershipOverviewGUI"], ""))
41 ->withParent(StandardTopItemsProvider::getInstance()->getRepositoryIdentification())
42 ->withVisibilityCallable($access_helper->isUserLoggedIn($access_helper->isUserLoggedIn($access_helper->isRepositoryReadable())));
43
44 return $entries;
45 }
46}
An exception for terminatinating execution or to throw for unit testing.
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