59         $this->dic->language()->loadLanguageModule(
'mst');
    62         $top = StandardTopItemsProvider::getInstance()->getOrganisationIdentification();
    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'));
    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"));
   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"));
   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"));
   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...
 
if(!file_exists('../ilias.ini.php'))
 
Interface StaticMainMenuProvider. 
 
withVisibilityCallable(callable $is_visible)
 
withSymbol(Symbol $symbol)
 
language()
Get interface to the i18n service. 
 
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
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.