19 declare(strict_types=1);
42 $this->data_service = $data_service;
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");
79 $lng->toJS(array(
"private_notes",
"notes_public_comments",
"cancel",
"notes_messages"), $tpl);
80 $tpl->addJavaScript(
"./Services/Notes/js/ilNotes.js");
81 $tpl->addOnLoadCode(
"ilNotes.setAjaxUrl('" . $ajax_url .
"');");
91 $this->domain_service->lng()
100 bool $include_subs =
false,
102 string $search_text =
"" 104 return new \ilCommentGUI(
121 return new \ilMessageGUI(
initGUIServices(\ILIAS\DI\Container $DIC)
static initJS(ilGlobalTemplateInterface $a_main_tpl=null)
Export internal domain service.
InternalDomainService $domain_service
Customizing of pimple-DIC for ILIAS.
Export internal data service.
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)
trait GlobalDICGUIServices
getMessagesGUI(int $recipient, int $rep_obj_id, int $obj_id, string $obj_type)
Export internal ui service.
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