3 declare(strict_types=1);
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();
81 $path = [
"ilcommonactiondispatchergui",
"ilnotegui"];
85 if ($ajax_url ===
"") {
86 $ajax_url = $this->
ctrl()->getLinkTargetByClass(
94 $lng->loadLanguageModule(
"notes");
97 $lng->toJS(array(
"private_notes",
"notes_public_comments",
"cancel"),
$tpl);
100 $tpl->addJavaScript(
"./Services/Notes/js/ilNotes.js");
101 $tpl->addOnLoadCode(
"ilNotes.setAjaxUrl('" . $ajax_url .
"');");
111 bool $activated =
true,
112 bool $expanded =
true 130 $this->domain_service->lng()
initGUIServices(\ILIAS\DI\Container $DIC)
static initJS(ilGlobalTemplateInterface $a_main_tpl=null)
Customizing of pimple-DIC for ILIAS.
Repository internal data service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)
static http()
Fetches the global http state from ILIAS.
__construct(Container $DIC, InternalDataService $data_service, InternalDomainService $domain_service)
static initjQuery(ilGlobalTemplateInterface $a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
initJavascript(string $ajax_url="", ?\ilGlobalTemplateInterface $main_tpl=null)
trait GlobalDICGUIServices
InternalDomainService $domain_service
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
static _lookupType(int $id, bool $reference=false)
static initConnection(?ilGlobalTemplateInterface $a_main_tpl=null)
Init YUI Connection module.
InternalDataService $data_service