/**
  * Select LM Glossary
  *
  * @param
  * @return
  */
 function showLMGlossarySelector()
 {
     global $tpl, $lng, $ilCtrl, $tree, $ilUser, $ilTabs;
     $this->setTabs();
     $ilTabs->setTabActive("settings");
     $this->setSubTabs("cont_glossaries");
     include_once 'Services/Search/classes/class.ilSearchRootSelector.php';
     $exp = new ilSearchRootSelector($ilCtrl->getLinkTarget($this, 'showLMGlossarySelector'));
     $exp->setExpand($_GET["search_root_expand"] ? $_GET["search_root_expand"] : $tree->readRootId());
     $exp->setExpandTarget($ilCtrl->getLinkTarget($this, 'showLMGlossarySelector'));
     $exp->setTargetClass(get_class($this));
     $exp->setCmd('confirmGlossarySelection');
     $exp->setClickableTypes(array("glo"));
     $exp->addFilter("glo");
     // build html-output
     $exp->setOutput(0);
     $tpl->setContent($exp->getOutput());
 }
 /**
  * Add style category assignment
  *
  * @param
  * @return
  */
 function addStyleCatAssignmentObject()
 {
     global $ilCtrl, $ilTabs, $lng, $tree, $tpl, $rbacsystem;
     if (!$rbacsystem->checkAccess("write", $this->object->getRefId())) {
         return;
     }
     $ilCtrl->setParameter($this, "style_id", urlencode($_GET["style_id"]));
     $ilCtrl->setParameter($this, "substyle", urlencode($_REQUEST["substyle"]));
     include_once 'Services/Search/classes/class.ilSearchRootSelector.php';
     $exp = new ilSearchRootSelector($ilCtrl->getLinkTarget($this, 'addStyleCatAssignment'));
     $exp->setExpand($_GET["search_root_expand"] ? $_GET["search_root_expand"] : $tree->readRootId());
     $exp->setExpandTarget($ilCtrl->getLinkTarget($this, 'addStyleCatAssignment'));
     $exp->setTargetClass(get_class($this));
     $exp->setCmd('saveStyleCatAssignment');
     $exp->setClickableTypes(array("cat"));
     // build html-output
     $exp->setOutput(0);
     $tpl->setContent($exp->getOutput());
 }
 /**
  * Select repository item
  * (extended to allow glossary selection)
  */
 function showRepositorySelection()
 {
     global $tpl, $lng, $ilCtrl, $tree, $ilUser;
     include_once 'Services/Search/classes/class.ilSearchRootSelector.php';
     $ilCtrl->setParameter($this, "postvar", $this->getPostVar());
     ilUtil::sendInfo($this->getHeaderMessage());
     $exp = new ilSearchRootSelector($ilCtrl->getLinkTarget($this, 'showRepositorySelection'));
     $exp->setExpand($_GET["search_root_expand"] ? $_GET["search_root_expand"] : $tree->readRootId());
     $exp->setExpandTarget($ilCtrl->getLinkTarget($this, 'showRepositorySelection'));
     $exp->setTargetClass(get_class($this));
     $exp->setCmd('selectRepositoryItem');
     $exp->setClickableTypes($this->getClickableTypes());
     // extension:
     $exp->addFilter('glo');
     // extension.
     // build html-output
     $exp->setOutput(0);
     $tpl->setContent($exp->getOutput());
 }
Exemplo n.º 4
0
 /**
  * Select skill level trigger
  */
 function selectLevelTrigger()
 {
     global $ilCtrl, $ilTabs, $lng, $tree, $tpl;
     $this->setLevelHead();
     $ilTabs->activateTab("level_trigger");
     include_once 'Services/Search/classes/class.ilSearchRootSelector.php';
     $exp = new ilSearchRootSelector($ilCtrl->getLinkTarget($this, 'showRepositorySelection'));
     $exp->setExpand($_GET["search_root_expand"] ? $_GET["search_root_expand"] : $tree->readRootId());
     $exp->setExpandTarget($ilCtrl->getLinkTarget($this, 'selectLevelTrigger'));
     $exp->setTargetClass(get_class($this));
     $exp->setCmd('saveLevelTrigger');
     $exp->setClickableTypes(array("crs"));
     // build html-output
     $exp->setOutput(0);
     $tpl->setContent($exp->getOutput());
 }
 /**
  * Add level resource
  */
 function addLevelResource()
 {
     global $ilCtrl, $ilTabs, $lng, $tree, $tpl;
     $this->setLevelHead();
     $ilTabs->activateTab("level_resources");
     include_once 'Services/Search/classes/class.ilSearchRootSelector.php';
     $exp = new ilSearchRootSelector($ilCtrl->getLinkTarget($this, 'addLevelResource'));
     $exp->setExpand($_GET["search_root_expand"] ? $_GET["search_root_expand"] : $tree->readRootId());
     $exp->setExpandTarget($ilCtrl->getLinkTarget($this, 'addLevelResource'));
     $exp->setTargetClass(get_class($this));
     $exp->setCmd('saveLevelResource');
     $exp->setClickableTypes(array("crs", "file", "lm", "tst", "sahs", "glo"));
     $exp->addFilter("root");
     $exp->addFilter("cat");
     $exp->addFilter("grp");
     $exp->addFilter("fold");
     $exp->addFilter("crs");
     $exp->addFilter("file");
     $exp->addFilter("lm");
     $exp->addFilter("tst");
     $exp->addFilter("sahs");
     $exp->addFilter("glo");
     // build html-output
     $exp->setOutput(0);
     $tpl->setContent($exp->getOutput());
 }