22 parent::__construct($dic);
23 $this->top_item = $this->
if->identifier(
'desktop');
48 return [$this->mainmenu->topParentItem($this->
getTopItem())
49 ->withTitle($this->dic->language()->txt(
"personal_desktop"))
51 ->withVisibilityCallable(
52 function () use (
$dic) {
53 return (
bool) (
$dic->user()->getId() != ANONYMOUS_USER_ID);
66 $dic->language()->loadLanguageModule(
"pd");
69 $entries[] = $this->mainmenu->link($this->
if->identifier(
'mm_pd_sel_items'))
70 ->withTitle($this->dic->language()->txt(
"overview"))
71 ->withAction(
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToSelectedItems")
74 ->withNonAvailableReason($this->dic->ui()->factory()->legacy(
"{$this->dic->language()->txt('component_not_active')}"))
75 ->withAvailableCallable(
76 function () use (
$dic) {
77 return $dic->settings()->get(
'disable_my_offers', 0) == 0;
80 ->withVisibilityCallable(
81 function () use (
$dic) {
84 return (
bool) $pdItemsViewSettings->
allViewsEnabled() || $pdItemsViewSettings->enabledSelectedItems();
89 $entries[] = $this->mainmenu->link($this->
if->identifier(
'mm_pd_crs_grp'))
90 ->withTitle($this->dic->language()->txt(
"my_courses_groups"))
91 ->withAction(
"ilias.php?baseClass=ilPersonalDesktopGUI&cmd=jumpToMemberships")
94 ->withNonAvailableReason($this->dic->ui()->factory()->legacy(
"{$this->dic->language()->txt('component_not_active')}"))
95 ->withAvailableCallable(
96 function () use (
$dic) {
97 return $dic->settings()->get(
'disable_my_memberships', 0) == 0;
100 ->withVisibilityCallable(
101 function () use (
$dic) {
104 return (
bool) $pdItemsViewSettings->
allViewsEnabled() || $pdItemsViewSettings->enabledMemberships();
109 $entries[] = $this->mainmenu->link($this->
if->identifier(
'mm_pd_achiev'))
110 ->withTitle($this->dic->language()->txt(
"pd_achievements"))
111 ->withAction(
$dic->ctrl()->getLinkTargetByClass([
"ilPersonalDesktopGUI",
"ilAchievementsGUI"],
""))
114 ->withAvailableCallable(
115 function () use (
$dic) {
118 return (
bool) $achievements->isAnyActive();
Interface IdentificationInterface.
Interface StaticMainMenuProvider.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
Class ilPDSelectedItemsBlockViewSettings.
Maybe a separate service in the future.
getTopItem()
Some other components want to provide Items for the main menu which are located at the PD TopTitem by...
Class ilPDGlobalScreenProvider.
__construct(\ILIAS\DI\Container $dic)