2require_once(
"./Services/ContainerReference/classes/class.ilContainerSelectionExplorer.php");
 
   35        parent::__construct($a_target);
 
   41        $this->
addJsConf(
'save_explorer_url', $a_target);
 
   53        $tpl->addJavaScript(
"./Services/UIComponent/Explorer/js/ilExplorer.js");
 
   68        $ref_id = (int) 
$_GET[
'ref_id'];
 
   70            return "$('body').trigger('async_explorer-add_reference', {target_id: '" . $a_node_id . 
"', type: '" . 
$a_type . 
"', parent_id: '" . $ref_id . 
"'});";
 
   85        return "javascript:void(0);";
 
   98        return parent::getOutput();
 
  107        self::addOnLoadCode(
'explorer', 
'$("#' . $this->
getId() . 
'").study_programme_async_explorer(' . json_encode($this->js_conf) . 
');');
 
  121        if (!isset(self::$js_on_load_added[
$id])) {
 
  122            $tpl->addOnLoadCode($content);
 
  123            self::$js_on_load_added[
$id] = $content;
 
  134        $this->js_conf[
$key] = $value;
 
  144        return $this->js_conf[
$key];
 
An exception for terminatinating execution or to throw for unit testing.
Class ilAsyncContainerSelectionExplorer A class for a async ilContainerSelectionExplorer which trigge...
getJsConf($key)
Returns a certain setting of the additional configuration.
static addJavascript()
Adds the javascript to template.
addJsConf($key, $value)
Adds additional js to the onload code of the async explorer.
getOutput()
Returns the explorer html and adds the javascripts to the template.
buildLinkTarget($a_node_id, $a_type)
Sets the href-value to a void js call.
addOnLoadCode($id, $content)
Adds onload code to the template.
buildOnClick($a_node_id, $a_type, $a_title)
Creates the onclick function call.