2 require_once(
"./Services/ContainerReference/classes/class.ilContainerSelectionExplorer.php");
33 parent::__construct($a_target);
39 $this->
addJsConf(
'save_explorer_url', $a_target);
50 $tpl->addJavaScript(
"./Services/UIComponent/Explorer/js/ilExplorer.js");
67 return "$('body').trigger('async_explorer-add_reference', {target_id: '".$a_node_id.
"', type: '".
$a_type.
"', parent_id: '".
$ref_id.
"'});";
82 return "javascript:void(0);";
94 return parent::getOutput();
102 self::addOnLoadCode(
'explorer',
'$("#'.$this->
getId().
'").study_programme_async_explorer('.json_encode($this->js_conf).
');');
115 if(!isset(self::$js_on_load_added[
$id])) {
116 $tpl->addOnLoadCode($content);
117 self::$js_on_load_added[
$id] = $content;
127 $this->js_conf[$key] = $value;
136 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.
Create styles array
The data for the language used.
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.