2 require_once(
"./Services/ContainerReference/classes/class.ilContainerSelectionExplorer.php");
33 parent::__construct($a_target);
38 $this->
addJsConf(
'save_explorer_url', $a_target);
48 $tpl->addJavaScript(
"./Services/UIComponent/Explorer/js/ilExplorer.js");
65 return "$('body').trigger('async_explorer-add_reference', {target_id: '".$a_node_id.
"', type: '".$a_type.
"', parent_id: '".
$ref_id.
"'});";
80 return "javascript:void(0);";
92 return parent::getOutput();
100 self::addOnLoadCode(
'explorer',
'$("#'.$this->
getId().
'").study_programme_async_explorer('.json_encode($this->js_conf).
');');
112 if(!isset(self::$js_on_load_added[
$id])) {
113 $tpl->addOnLoadCode($content);
114 self::$js_on_load_added[
$id] = $content;
124 $this->js_conf[$key] = $value;
133 return $this->js_conf[$key];
buildLinkTarget($a_node_id, $a_type)
Sets the href-value to a void js call.
addOnLoadCode($id, $content)
Adds onload code to the template.
getOutput()
Returns the explorer html and adds the javascripts to the template.
static addJavascript()
Adds the javascript to template.
Class ilAsyncContainerSelectionExplorer A class for a async ilContainerSelectionExplorer which trigge...
getJsConf($key)
Returns a certain setting of the additional configuration.
addJsConf($key, $value)
Adds additional js to the onload code of the async explorer.
buildOnClick($a_node_id, $a_type, $a_title)
Creates the onclick function call.