/**
  * Pool selection
  *
  * @param
  * @return
  */
 function poolSelection()
 {
     global $ilCtrl, $tree, $tpl, $ilTabs;
     $this->setInsertTabs("copy_question");
     include_once "./Services/COPage/classes/class.ilPoolSelectorGUI.php";
     $exp = new ilPoolSelectorGUI($ilCtrl->getLinkTarget($this, "insert"));
     if ($_GET["expand"] == "") {
         $expanded = $tree->readRootId();
     } else {
         $expanded = $_GET["expand"];
     }
     $exp->setExpand($expanded);
     $exp->setTargetGet("sel_id");
     $ilCtrl->setParameter($this, "target_type", $a_type);
     $ilCtrl->setParameter($this, "subCmd", "poolSelection");
     $exp->setParamsGet($this->ctrl->getParameterArray($this, "insert"));
     // 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("qpl");
     $exp->setContentGUIClass("ilpcquestiongui");
     $exp->setSelectableTypes(array('qpl'));
     $exp->setOutput(0);
     $tpl->setContent($exp->getOutput());
 }
 /**
  * Pool Selection
  */
 function poolSelection($a_change_obj_ref = false)
 {
     global $ilCtrl, $tree, $tpl, $ilTabs;
     $this->getTabs($ilTabs, true, $a_change_obj_ref);
     $ilTabs->setSubTabActive("cont_mob_from_media_pool");
     include_once "./Services/COPage/classes/class.ilPoolSelectorGUI.php";
     if ($a_change_obj_ref) {
         $exp = new ilPoolSelectorGUI($this->ctrl->getLinkTarget($this, "changeObjectReference"));
     } else {
         $exp = new ilPoolSelectorGUI($this->ctrl->getLinkTarget($this, "insert"));
     }
     if ($_GET["expand"] == "") {
         $expanded = $tree->readRootId();
     } else {
         $expanded = $_GET["expand"];
     }
     $exp->setExpand($expanded);
     $exp->setTargetGet("sel_id");
     $this->ctrl->setParameter($this, "target_type", $a_type);
     $ilCtrl->setParameter($this, "subCmd", "poolSelection");
     if ($a_change_obj_ref) {
         $exp->setParamsGet($this->ctrl->getParameterArray($this, "changeObjectReference"));
     } else {
         $exp->setParamsGet($this->ctrl->getParameterArray($this, "insert"));
     }
     // 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("mep");
     $sel_types = array('mep');
     $exp->setOutput(0);
     $tpl->setContent($exp->getOutput());
 }