43 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::COMS, $title);
44 $ctrl->setParameterByClass(\ilPDNotesGUI::class,
"note_type", 2);
45 $comments = $this->mainmenu->link($this->
if->identifier(
'mm_pd_comments'))
47 ->withAction($ctrl->getLinkTargetByClass([
"ilDashboardGUI",
"ilPDNotesGUI"],
"showPublicComments"))
51 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content($this->dic->language()->txt(
'component_not_active')))
52 ->withAvailableCallable(
53 static function () use (
$dic):
bool {
59 $icon = $this->dic->ui()->factory()->symbol()->icon()->standard(
Standard::NOTS, $title);
62 $ctrl->setParameterByClass(\ilPDNotesGUI::class,
"note_type", 1);
63 $notes = $this->mainmenu->link($this->
if->identifier(
'mm_pd_notes'))
65 ->withAction($ctrl->getLinkTargetByClass([
"ilDashboardGUI",
"ilPDNotesGUI"],
"showPrivateNotes"))
69 ->withNonAvailableReason($this->dic->ui()->factory()->legacy()->content($this->dic->language()->txt(
'component_not_active')))
70 ->withAvailableCallable(
71 static function () use (
$dic):
bool {
language()
Get interface to the i18n service.
settings()
Get the interface to the settings.
ctrl()
Get the interface to the control structure.
Interface StaticMainMenuProvider.
Class StandardTopItemsProvider.
Class NotesMainBarProvider.
This describes the specific behavior of an ILIAS standard icon.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))