58 if (!isset(self::$instance)) {
59 self::$instance =
new self(
$DIC);
62 return self::$instance;
73 $this->repository_identification = $this->
if->identifier(
'repository');
74 $this->personal_workspace_identification = $this->
if->identifier(
'personal_workspace');
75 $this->achievements_identification = $this->
if->identifier(
'achievements');
76 $this->communication_identification = $this->
if->identifier(
'communication');
77 $this->organisation_identification = $this->
if->identifier(
'organisation');
78 $this->administration_identification = $this->
if->identifier(
'administration');
88 return $this->dic->language()->txt($id);
93 $title = $this->dic->language()->txt(
"mm_dashboard");
94 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::DSHS, $title)->withIsOutlined(
true);
95 $dashboard = $this->mainmenu->topLinkItem($this->
if->identifier(
'mm_pd_crs_grp'))
98 ->withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToMemberships")
100 ->withNonAvailableReason($this->dic->ui()->factory()->legacy(
"{$this->dic->language()->txt('component_not_active')}"))
101 ->withAvailableCallable(
102 function () use (
$dic) {
105 return $dic->settings()->get(
'disable_my_memberships', 0) == 0;
108 ->withVisibilityCallable(
109 $this->basic_access_helper->isUserLoggedIn()
112 $title =
$f(
"mm_repository");
113 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::REP, $title)->withIsOutlined(
true);
116 ->withVisibilityCallable($this->basic_access_helper->isRepositoryReadable())
121 $title =
$f(
"mm_personal_workspace");
122 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_wksp.svg"), $title);
125 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
130 $title =
$f(
"mm_achievements");
131 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_achv.svg"), $title);
134 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
139 $title =
$f(
"mm_communication");
140 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_comu.svg"), $title);
143 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
148 $title =
$f(
"mm_organisation");
149 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"outlined/icon_orga.svg"), $title);
152 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn(
static function () :
bool {
158 ->withAvailableCallable(
159 static function () :
bool {
163 $title =
$f(
"mm_administration");
164 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"adm", $title)->withIsOutlined(
true);
167 ->withSupportsAsynchronousLoading(
false)
168 ->withAvailableCallable($this->basic_access_helper->isUserLoggedIn())
172 ->withVisibilityCallable($this->basic_access_helper->hasAdministrationAccess());
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()