19 declare(strict_types=1);
44 $this->organisationIdentifier = StandardTopItemsProvider::getInstance()->getOrganisationIdentification();
45 $this->employeeTalkTemplateIdentifier = $this->
if->identifier(
'mm_adm_org_etal');
56 $this->dic->language()->loadLanguageModule(
'etal');
59 $title = $this->dic->language()->txt(
"mm_org_etal");
61 $icon = $this->dic->ui()->factory()->symbol()->icon()->custom(
66 $items[] = $this->mainmenu->link($this->employeeTalkTemplateIdentifier)
67 ->withAlwaysAvailable(
false)
68 ->withAction($this->dic->ctrl()->getLinkTargetByClass([
69 ilDashboardGUI::class,
71 ilEmployeeTalkMyStaffListGUI::class,
72 ], ControlFlowCommand::INDEX))
75 return boolval($this->
settings->get(
'enable_my_staff'));
78 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content(
"{$this->dic->language()->txt('item_must_be_always_active')}"))
83 ->withVisibilityCallable(
85 return ilMyStaffAccess::getInstance()->hasCurrentUserAccessToTalks();
97 return "components/ILIAS/EmployeeTalk";
IdentificationInterface $employeeTalkTemplateIdentifier
Interface IdentificationInterface.
__construct(Container $dic)
withAvailableCallable(callable $is_available)
Interface StaticMainMenuProvider.
Customizing of pimple-DIC for ILIAS.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
getProviderNameForPresentation()
__construct(Container $dic, ilPlugin $plugin)
IdentificationInterface $organisationIdentifier
settings()
Get the interface to the settings.