58        $this->tpl = 
$DIC[
"tpl"];
 
   59        $this->ctrl = 
$DIC->ctrl();
 
   60        $this->lng = 
$DIC->language();
 
   61        $this->
user = $DIC->user();
 
   63        $this->glossary_gui = $a_glossary_gui;
 
   64        $this->glossary = $a_glossary_gui->object;
 
   66        $this->fglo_ref_id = (int) 
$_GET[
"fglo_ref_id"];
 
   68            $this->foreign_glossary = 
new ilObjGlossary($this->fglo_ref_id, 
true);
 
   71        $this->ctrl->saveParameter($this, 
"fglo_ref_id");
 
   82        return new self($a_glossary_gui);
 
   90        $next_class = $this->ctrl->getNextClass($this);
 
   91        $cmd = $this->ctrl->getCmd(
"showGlossarySelector");
 
   93        switch ($next_class) {
 
   95                if (in_array($cmd, array(
"showGlossarySelector", 
"setForeignGlossary", 
"showTerms", 
"copyTerms", 
"referenceTerms"))) {
 
  107        include_once(
"./Services/Repository/classes/class.ilRepositorySelectorExplorerGUI.php");
 
  110            "showGlossarySelector",
 
  112            "setForeignGlossary",
 
  115        $exp->setTypeWhiteList(array(
"root", 
"cat", 
"grp", 
"crs", 
"glo", 
"fold"));
 
  116        $exp->setClickableTypes(array(
"glo"));
 
  117        if (!$exp->handleCommand()) {
 
  118            $this->tpl->setContent($exp->getHTML());
 
  130        $ref_id = (int) 
$_GET[
"fglo_ref_id"];
 
  132        if ($ref_id == $this->glossary->getRefId()) {
 
  134            $ilCtrl->redirect($this, 
"showGlossarySelector");
 
  137        $ilCtrl->redirect($this, 
"showTerms");
 
  148        include_once(
"./Modules/Glossary/classes/class.ilGlossaryForeignTermTableGUI.php");
 
  151        $this->tpl->setContent(
$t->getHTML());
 
  162        if (!is_array(
$_POST[
"term_id"])) {
 
  164            $this->ctrl->redirect($this, 
"showTerms");
 
  166        include_once(
"./Modules/Glossary/classes/class.ilGlossaryAct.php");
 
  169            $act->copyTerm($this->foreign_glossary, (
int) 
$id);
 
  172        $this->ctrl->returnToParent($this);
 
  183        if (!is_array(
$_POST[
"term_id"])) {
 
  185            $this->ctrl->redirect($this, 
"showTerms");
 
  187        include_once(
"./Modules/Glossary/classes/class.ilGlossaryAct.php");
 
  191            $terms[] = (int) 
$id;
 
  193        $act->referenceTerms($this->foreign_glossary, $terms);
 
  196        $this->ctrl->returnToParent($this);
 
An exception for terminatinating execution or to throw for unit testing.
static getInstance(ilObjGlossary $a_glossary, ilObjUser $a_user)
Get instance.
Collects terms (reference or copy) from other glossaries.
referenceTerms()
Reference terms.
showGlossarySelector()
Add level resource.
setForeignGlossary()
Save level resource.
static getInstance(ilObjGlossaryGUI $a_glossary_gui)
Get instance.
__construct(ilObjGlossaryGUI $a_glossary_gui)
Constructor.
executeCommand()
Execute command.
TableGUI class for collecting foreign terms.
static _lookupType($a_id, $a_reference=false)
lookup object type
Explorer for selecting repository items.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if(!array_key_exists('StateId', $_REQUEST)) $id