22 parent::__construct($dic);
58 if (
$dic->settings()->get(
"disable_notes")) {
59 $c =
"jumpToComments";
62 return "ilias.php?baseClass=ilPersonalDesktopGUI&cmd=" .
$c;
66 $dic->language()->loadLanguageModule(
"notes");
67 $t =
$dic->language()->txt(
"notes");
68 if (!
$dic->settings()->get(
"disable_notes") && !
$dic->settings()->get(
"disable_comments")) {
69 $t =
$dic->language()->txt(
"notes_and_comments");
71 if (
$dic->settings()->get(
"disable_notes")) {
72 $t =
$dic->language()->txt(
"notes_comments");
79 return [$this->mainmenu->link($this->
if->identifier(
'mm_pd_notes'))
84 ->withNonAvailableReason($this->dic->ui()->factory()->legacy(
"{$this->dic->language()->txt('component_not_active')}"))
85 ->withAvailableCallable(
86 function () use (
$dic) {
87 return (
bool) (!
$dic->settings()->get(
"disable_notes") || !
$dic->settings()->get(
"disable_comments"));
Interface IdentificationInterface.
Interface StaticMainMenuProvider.
getTopItem()
Some other components want to provide Items for the main menu which are located at the PD TopTitem by...
Class ilNotesGlobalScreenProvider.
if(!file_exists(getcwd() . '/ilias.ini.php'))
registration confirmation script for ilias
__construct(\ILIAS\DI\Container $dic)
Class ilPDGlobalScreenProvider.