Пример #1
0
 /**
  * Pool Selection
  */
 function poolSelection($a_change_obj_ref = false)
 {
     global $tpl, $ilTabs, $ilCtrl;
     $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) {
         $ilCtrl->setParameter($this, "subCmd", "poolSelection");
         $exp = new ilPoolSelectorGUI($this, "changeObjectReference", $this, "changeObjectReference");
     } else {
         $ilCtrl->setParameter($this, "subCmd", "poolSelection");
         $exp = new ilPoolSelectorGUI($this, "insert");
     }
     // filter
     $exp->setTypeWhiteList(array("root", "cat", "grp", "fold", "crs", "mep"));
     $exp->setClickableTypes(array('mep'));
     if (!$exp->handleCommand()) {
         $tpl->setContent($exp->getHTML());
     }
 }