43 $this->organisationIdentifier = $this->
if->identifier(
'mm_adm_org');
44 $this->orgUnitIdentifier = $this->
if->identifier(
'mm_adm_org_orgu');
45 $this->employeeTalkTemplateIdentifier = $this->
if->identifier(
'mm_adm_org_etal');
58 $this->dic->language()->loadLanguageModule(
'mst');
59 $this->dic->language()->loadLanguageModule(
'etal');
62 $access_helper = BasicAccessCheckClosuresSingleton::getInstance();
63 $top = StandardTopItemsProvider::getInstance()->getAdministrationIdentification();
65 $title = $this->dic->language()->txt(
"objs_orgu");
67 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
'orgu', $title);
69 $linkOrgUnit = $this->mainmenu->link($this->orgUnitIdentifier)
70 ->withAlwaysAvailable(
true)
72 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content(
"{$this->dic->language()->txt('item_must_be_always_active')}"))
77 ->withVisibilityCallable(
78 $access_helper->hasAdministrationAccess(
function ():
bool {
79 return $this->dic->access()->checkAccess(
87 $title = $this->dic->language()->txt(
"mm_talk_template",
"");
89 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
'tala', $title);
90 $linkEmployeeTalkTemplates = $this->mainmenu->link($this->employeeTalkTemplateIdentifier)
91 ->withAlwaysAvailable(
true)
93 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content(
"{$this->dic->language()->txt('item_must_be_always_active')}"))
98 ->withVisibilityCallable(
99 $access_helper->hasAdministrationAccess(
function ():
bool {
100 return $this->dic->access()->checkAccess(
108 $title = $this->dic->language()->txt(
"mm_organisation");
109 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
'org', $title);
110 $items[] = $this->mainmenu->linkList($this->organisationIdentifier)
111 ->withAlwaysAvailable(
true)
112 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content(
"{$this->dic->language()->txt('item_must_be_always_active')}"))
117 ->withLinks([$linkOrgUnit, $linkEmployeeTalkTemplates])
118 ->withVisibilityCallable(
119 $access_helper->hasAdministrationAccess(
function ():
bool {
120 return $this->dic->access()->checkAccess(
Interface IdentificationInterface.
IdentificationInterface $employeeTalkTemplateIdentifier
Interface StaticMainMenuProvider.
Customizing of pimple-DIC for ILIAS.
IdentificationInterface $orgUnitIdentifier
IdentificationInterface $organisationIdentifier
Class OrgUnitMainBarProvider.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
__construct(Container $dic)