19declare(strict_types=1);
64 if (!isset(self::$instance)) {
65 self::$instance =
new self(
$DIC);
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);
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Customizing of pimple-DIC for ILIAS.
Class BasicAccessCheckClosuresSingleton.
Class BasicAccessCheckClosures.
Render a TopItem as Drilldown (DD in Slate)
Interface StaticMainMenuProvider.
Class StandardTopItemsProvider.
getCommunicationIdentification()
IdentificationInterface $achievements_identification
getRepositoryIdentification()
getProviderNameForPresentation()
@inheritDoc
getStaticSubItems()
@inheritDoc
getOrganisationIdentification()
IdentificationInterface $organisation_identification
getAchievementsIdentification()
getPersonalWorkspaceIdentification()
static StandardTopItemsProvider $instance
IdentificationInterface $repository_identification
getStaticTopItems()
@inheritDoc
IdentificationInterface $personal_workspace_identification
IdentificationInterface $administration_identification
__construct(Container $dic)
@inheritDoc
BasicAccessCheckClosures $basic_access_helper
IdentificationInterface $communication_identification
getAdministrationIdentification()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
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...
Interface IdentificationInterface.
This describes the specific behavior of an ILIAS standard icon.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
withSymbol(Symbol $symbol)
@inheritDoc