59 $this->dic->language()->loadLanguageModule(
'mst');
64 $title = $this->dic->language()->txt(
"mm_staff_list");
65 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(
71 $items[] = $this->mainmenu->link($this->
if->identifier(
'mm_pd_mst'))
74 ->withAction($this->dic->ctrl()->getLinkTargetByClass([
75 ilDashboardGUI::class,
77 ilMStListUsersGUI::class,
81 ->withAvailableCallable(
82 static function () use (
$dic) {
83 return (
bool) (
$dic->
settings()->get(
'enable_my_staff'));
86 ->withVisibilityCallable(
90 )->hasCurrentUserAccessToMyStaff();
92 )->withNonAvailableReason(
$dic->
ui()->factory()->legacy(
"{$dic->language()->txt('component_not_active')}"));
94 $title = $this->dic->language()->txt(
"mm_enrolments");
95 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(
101 $items[] = $this->mainmenu->link($this->
if->identifier(
'mm_pd_enrol'))
104 ->withAction($this->dic->ctrl()->getLinkTargetByClass([
105 ilDashboardGUI::class,
107 ilMStListCoursesGUI::class,
111 ->withAvailableCallable(
112 function () use (
$dic) {
113 return (
bool) (
$dic->
settings()->get(
"enable_my_staff"));
116 ->withVisibilityCallable(
120 )->hasCurrentUserAccessToCourseMemberships();
122 )->withNonAvailableReason(
$dic->
ui()->factory()->legacy(
"{$dic->language()->txt('component_not_active')}"));
125 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::CERT, $title);
126 $items[] = $this->mainmenu->link($this->
if->identifier(
"mm_pd_cert"))
128 ->withTitle($this->dic->language()->txt(
"mm_certificates"))
129 ->withAction($this->dic->ctrl()->getLinkTargetByClass([
130 ilDashboardGUI::class,
132 ilMStListCertificatesGUI::class,
136 ->withAvailableCallable(
138 return boolval($this->dic->settings()->get(
"enable_my_staff"));
141 ->withVisibilityCallable(
145 )->hasCurrentUserAccessToCertificates();
147 )->withNonAvailableReason($this->dic->ui()->factory()->legacy(
"{$this->dic->language()->txt("component_not_active
")}"));
150 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::SKMG, $title);
151 $items[] = $this->mainmenu->link($this->
if->identifier(
"mm_pd_comp"))
153 ->withTitle($this->dic->language()->txt(
"mm_skills"))
154 ->withAction($this->dic->ctrl()->getLinkTargetByClass([
155 ilDashboardGUI::class,
157 ilMStListCompetencesGUI::class,
161 ->withAvailableCallable(
163 return boolval($this->dic->settings()->get(
"enable_my_staff"));
166 ->withVisibilityCallable(
170 )->hasCurrentUserAccessToCompetences();
172 )->withNonAvailableReason($this->dic->ui()->factory()->legacy(
"{$this->dic->language()->txt("component_not_active
")}"));
Class StaffMainBarProvider.
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)
Interface StaticMainMenuProvider.
if(!file_exists(getcwd() . '/ilias.ini.php'))
withSymbol(Symbol $symbol)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ui()
Get the interface to get services from UI framework.
settings()
Get the interface to the settings.