/** * 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() { global $ilCtrl, $tree, $tpl, $ilTabs; // $this->getTabs($ilTabs, true); // $ilTabs->setSubTabActive("cont_mob_from_media_pool"); include_once "./Services/COPage/classes/class.ilPoolSelectorGUI.php"; $exp = new ilPoolSelectorGUI($this->ctrl->getLinkTarget($this, "insert")); $exp->setContentGUIClass(get_class($this)); 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"); $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()); }