3 declare(strict_types=1);
52 $this->
addJsConf(
'save_explorer_url', $target);
75 $ref_id = $this->request_wrapper->retrieve(
"ref_id", $this->
refinery->kindlyTo()->int());
78 "$('body').trigger('async_explorer-add_reference', {target_id: '" .
94 return "javascript:void(0);";
104 return parent::getOutput();
115 '$("#' . $this->
getId() .
'").study_programme_async_explorer(' . json_encode(
127 if (!isset(self::$js_on_load_added[$id])) {
128 $this->tpl->addOnLoadCode($content);
129 self::$js_on_load_added[
$id] = $content;
138 $this->js_conf[
$key] = $value;
146 return $this->js_conf[
$key];
buildLinkTarget($node_id, string $type)
Sets the href-value to a void js call.
ILIAS HTTP Wrapper RequestWrapper $request_wrapper
getJsConf(string $key)
Returns a certain setting of the additional configuration.
static array $js_on_load_added
Class ChatMainBarProvider .
ilGlobalTemplateInterface $tpl
ILIAS Refinery Factory $refinery
getOutput()
Returns the explorer html and adds the javascript to the template.
addJsConf(string $key, string $value)
Adds additional js to the onload code of the async explorer.
__construct(string $target, Factory $refinery, ILIAS\HTTP\Wrapper\RequestWrapper $request_wrapper)
addJavaScript(string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
Add a javascript file that should be included in the header.
static addJavascript()
Adds the javascript to template.
__construct(Container $dic, ilPlugin $plugin)
Class ilAsyncContainerSelectionExplorer A class for async ilContainerSelectionExplorer which triggers...
buildOnClick($node_id, string $type, string $title)
Creates the onclick function call.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addOnLoadCode(string $id, string $content)
Adds onload code to the template.