74 if (!isset(self::$instance)) {
75 self::$instance =
new self(
$DIC);
78 return self::$instance;
89 $this->repository_identification = $this->
if->identifier(
'repository');
90 $this->personal_workspace_identification = $this->
if->identifier(
'personal_workspace');
91 $this->achievements_identification = $this->
if->identifier(
'achievements');
92 $this->communication_identification = $this->
if->identifier(
'communication');
93 $this->organisation_identification = $this->
if->identifier(
'organisation');
94 $this->administration_identification = $this->
if->identifier(
'administration');
103 $f =
function ($id) {
104 return $this->dic->language()->txt($id);
109 $title = $this->dic->language()->txt(
"mm_dashboard");
110 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::DSHS, $title)->withIsOutlined(
true);
111 $dashboard = $this->mainmenu->topLinkItem($this->
if->identifier(
'mm_pd_crs_grp'))
114 ->withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToMemberships")
116 ->withNonAvailableReason($this->dic->ui()->factory()->legacy(
"{$this->dic->language()->txt('component_not_active')}"))
117 ->withAvailableCallable(
118 function () use (
$dic) {
121 return $dic->settings()->get(
'disable_my_memberships', 0) == 0;
124 ->withVisibilityCallable(
125 $this->basic_access_helper->isUserLoggedIn()
128 $title =
$f(
"mm_repository");
129 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::REP, $title)->withIsOutlined(
true);
132 ->withVisibilityCallable($this->basic_access_helper->isRepositoryReadable())
137 $title =
$f(
"mm_personal_workspace");
138 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_wksp.svg"), $title);
141 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
146 $title =
$f(
"mm_achievements");
147 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_achv.svg"), $title);
150 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
155 $title =
$f(
"mm_communication");
156 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_comu.svg"), $title);
159 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
164 $title =
$f(
"mm_organisation");
165 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_orga.svg"), $title);
168 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
173 $title =
$f(
"mm_administration");
174 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"adm", $title)->withIsOutlined(
true);
177 ->withSupportsAsynchronousLoading(
false)
178 ->withAvailableCallable($this->basic_access_helper->isUserLoggedIn())
182 ->withVisibilityCallable($this->basic_access_helper->hasAdministrationAccess());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface IdentificationInterface.
getPersonalWorkspaceIdentification()
getAchievementsIdentification()
$personal_workspace_identification
Interface StaticMainMenuProvider.
Customizing of pimple-DIC for ILIAS.
__construct(Container $dic)
$organisation_identification
$repository_identification
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
getProviderNameForPresentation()
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
withSymbol(Symbol $symbol)
$administration_identification
getOrganisationIdentification()
getCommunicationIdentification()
$achievements_identification
__construct(Container $dic, ilPlugin $plugin)
Class StandardTopItemsProvider.
$communication_identification
getAdministrationIdentification()
getRepositoryIdentification()