19 declare(strict_types=1);
64 if (!isset(self::$instance)) {
65 self::$instance =
new self(
$DIC);
68 return self::$instance;
79 $this->repository_identification = $this->
if->identifier(
'repository');
80 $this->personal_workspace_identification = $this->
if->identifier(
'personal_workspace');
81 $this->achievements_identification = $this->
if->identifier(
'achievements');
82 $this->communication_identification = $this->
if->identifier(
'communication');
83 $this->organisation_identification = $this->
if->identifier(
'organisation');
84 $this->administration_identification = $this->
if->identifier(
'administration');
94 return $this->dic->language()->txt(
$id);
98 $title = $this->dic->language()->txt(
"mm_dashboard");
99 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::DSHS, $title);
100 $dashboard = $this->mainmenu->topLinkItem($this->
if->identifier(
'mm_pd_crs_grp'))
103 ->withAction(
"ilias.php?baseClass=ilDashboardGUI&cmd=jumpToMemberships")
105 ->withNonAvailableReason($this->dic->ui()->factory()->legacy(
"{$this->dic->language()->txt('component_not_active')}"))
106 ->withAvailableCallable(
111 ->withVisibilityCallable(
112 $this->basic_access_helper->isUserLoggedIn()
115 $title =
$f(
"mm_repository");
116 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::REP, $title);
119 ->withVisibilityCallable($this->basic_access_helper->isRepositoryReadable())
124 $title =
$f(
"mm_personal_workspace");
125 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"icon_wksp.svg"), $title);
128 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
133 $title =
$f(
"mm_achievements");
134 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"icon_achv.svg"), $title);
137 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
142 $title =
$f(
"mm_communication");
143 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"icon_comu.svg"), $title);
146 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
151 $title =
$f(
"mm_organisation");
152 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(\
ilUtil::getImagePath(
"icon_orga.svg"), $title);
155 ->withVisibilityCallable($this->basic_access_helper->isUserLoggedIn())
160 $title =
$f(
"mm_administration");
161 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
"adm", $title);
164 ->withSupportsAsynchronousLoading(
false)
165 ->withAvailableCallable($this->basic_access_helper->isUserLoggedIn())
169 ->withVisibilityCallable($this->basic_access_helper->hasAdministrationAccess());
172 $ti =
new TypeInformation(get_class($administration), get_class($administration));
173 $ti->setRenderer($dd_renderer);
174 $administration = $administration->setTypeInformation($ti);
IdentificationInterface $repository_identification
Interface IdentificationInterface.
getPersonalWorkspaceIdentification()
getAchievementsIdentification()
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
Class BasicAccessCheckClosures.
IdentificationInterface $personal_workspace_identification
IdentificationInterface $administration_identification
Interface StaticMainMenuProvider.
Customizing of pimple-DIC for ILIAS.
__construct(Container $dic)
Render a TopItem as Drilldown (DD in Slate)
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getProviderNameForPresentation()
static StandardTopItemsProvider $instance
withSymbol(Symbol $symbol)
getOrganisationIdentification()
getCommunicationIdentification()
__construct(Container $dic, ilPlugin $plugin)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
IdentificationInterface $achievements_identification
Class StandardTopItemsProvider.
getAdministrationIdentification()
getRepositoryIdentification()
IdentificationInterface $organisation_identification
IdentificationInterface $communication_identification
BasicAccessCheckClosures $basic_access_helper