19 declare(strict_types=1);
49 return new StandardGUIRequest(
51 $this->domain_service->refinery()
56 string $ajax_url =
"",
60 $lng = $this->domain_service->lng();
61 $ctrl = $this->
ctrl();
64 $ref_id = $DIC->repository()->internal()->gui()->standardRequest()->getRefId();
66 if ($ajax_url ===
"") {
67 $path = [
"ilcommonactiondispatchergui",
"ilnotegui"];
68 $ajax_url = $this->
ctrl()->getLinkTargetByClass(
76 $lng->loadLanguageModule(
"notes");
78 $lng->toJS(array(
"private_notes",
"notes_public_comments",
"cancel",
"notes_messages"), $tpl);
79 $tpl->addJavaScript(
"assets/js/ilNotes.js");
84 $tpl->addOnLoadCode(
"ilNotes.setAjaxUrl('" . $ajax_url .
"');");
85 $tpl->addOnLoadCode(
'ilNotes.setModalTemplate("' . addslashes(json_encode($modal_template[
"template"])) .
'");');
86 $tpl->addOnLoadCode(
"ilNotes.setShowSignal('" . $modal_template[
"show"] .
"');");
87 $tpl->addOnLoadCode(
"ilNotes.setCloseSignal('" . $modal_template[
"close"] .
"');");
93 $modal = $ui->factory()->modal()->roundtrip(
'#notes_title#', $ui->factory()->legacy()->content(
''));
94 $modalt[
"show"] = $modal->getShowSignal()->getId();
95 $modalt[
"close"] = $modal->getCloseSignal()->getId();
96 $modalt[
"template"] = $ui->renderer()->renderAsync($modal);
101 public function print(): PrintProcessGUI
104 return new PrintProcessGUI(
108 $this->domain_service->lng()
117 bool $include_subs =
false,
119 string $search_text =
"" 121 return new \ilCommentGUI(
138 return new \ilMessageGUI(
initGUIServices(\ILIAS\DI\Container $DIC)
trait GlobalDICGUIServices
Repository internal data service.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
__construct(Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
initJavascript(string $ajax_url="", ?\ilGlobalTemplateInterface $main_tpl=null)
getMessagesGUI(int $recipient, int $rep_obj_id, int $obj_id, string $obj_type)
getCommentsGUI( $rep_obj_id, int $obj_id, string $obj_type, int $news_id=0, bool $include_subs=false, bool $ajax=true, string $search_text="")
InternalDomainService $domain_service
static _lookupType(int $id, bool $reference=false)
InternalDataService $data_service