/**
  * select repository item explorer
  */
 function selectRepositoryItem()
 {
     global $ilCtrl;
     $_SESSION["il_link_mep_obj"] = "";
     if (empty($a_type)) {
         $a_type = $_GET["target_type"];
     }
     include_once "./Modules/LearningModule/classes/class.ilIntLinkRepItemExplorer.php";
     $exp = new ilIntLinkRepItemExplorer(ilUtil::appendUrlParameterString($this->ctrl->getTargetScript(), "do=set"));
     if ($_GET["expand"] == "") {
         $expanded = $this->tree->readRootId();
     } else {
         $expanded = $_GET["expand"];
     }
     $exp->setMode($this->mode);
     $exp->setSetLinkTargetScript($this->getSetLinkTargetScript());
     $exp->setExpand($expanded);
     $exp->setTargetGet("sel_id");
     $this->ctrl->setParameter($this, "target_type", $a_type);
     $exp->setParamsGet($this->ctrl->getParameterArray($this, "refreshRepositorySelector"));
     // filter
     $exp->setFiltered(true);
     $exp->setFilterMode(IL_FM_POSITIVE);
     global $objDefinition;
     $rtypes = $objDefinition->getAllRepositoryTypes();
     $exp->addFilter("root");
     foreach ($rtypes as $t) {
         $exp->addFilter($t);
     }
     $sel_types = $rtypes;
     $exp->setSelectableTypes($sel_types);
     $exp->setFrameTarget("");
     $exp->setOutput(0);
     $output = $exp->getOutput();
     return $output;
 }
 /**
  * select repository item explorer
  */
 function selectRepositoryItem()
 {
     global $ilCtrl;
     $_SESSION["il_link_mep_obj"] = "";
     if (empty($a_type)) {
         $a_type = $_GET["target_type"];
     }
     include_once "./Modules/LearningModule/classes/class.ilIntLinkRepItemExplorer.php";
     $exp = new ilIntLinkRepItemExplorer(ilUtil::appendUrlParameterString($this->ctrl->getTargetScript(), "do=set"));
     if ($_GET["expand"] == "") {
         $expanded = $this->tree->readRootId();
     } else {
         $expanded = $_GET["expand"];
     }
     $exp->setMode($this->mode);
     $exp->setSetLinkTargetScript($this->getSetLinkTargetScript());
     $exp->setExpand($expanded);
     $exp->setTargetGet("sel_id");
     $this->ctrl->setParameter($this, "target_type", $a_type);
     $exp->setParamsGet($this->ctrl->getParameterArray($this, "refreshRepositorySelector"));
     // filter
     $exp->setFiltered(true);
     $exp->setFilterMode(IL_FM_POSITIVE);
     $exp->addFilter("root");
     $exp->addFilter("cat");
     $exp->addFilter("grp");
     $exp->addFilter("fold");
     $exp->addFilter("crs");
     $exp->addFilter("lm");
     $exp->addFilter("htlm");
     $exp->addFilter("dbk");
     $exp->addFilter("glo");
     $exp->addFilter("frm");
     $exp->addFilter("exc");
     $exp->addFilter("tst");
     $exp->addFilter("svy");
     $exp->addFilter("webr");
     $exp->addFilter("file");
     $exp->addFilter("chat");
     $exp->addFilter("sahs");
     $exp->addFilter("mcst");
     $exp->addFilter("wiki");
     $exp->addFilter("mep");
     $sel_types = array('lm', 'dbk', 'htlm', 'glo', 'frm', 'exc', 'tst', 'svy', 'webr', 'chat', 'cat', 'crs', 'grp', 'file', 'fold', 'sahs', 'mcst', 'wiki', 'mep');
     $exp->setSelectableTypes($sel_types);
     $exp->setFrameTarget("");
     $exp->setOutput(0);
     $output = $exp->getOutput();
     return $output;
 }