28 $this->temp_var =
"LOCATOR";
36 $this->temp_var = $a_temp_var;
41 $this->term =& $a_term;
46 $this->glossary =& $a_glossary;
51 $this->definition =& $a_def;
56 $this->mode = $a_mode;
67 $ilLocator->addRepositoryItems();
70 $title = $this->glossary->getTitle();
71 if ($this->mode ==
"edit")
73 $link = $ilCtrl->getLinkTargetByClass(
"ilobjglossarygui",
"listTerms");
77 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"term_id",
"");
78 $link = $ilCtrl->getLinkTargetByClass(
"ilglossarypresentationgui");
79 if (is_object($this->term))
81 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"term_id", $this->term->getId());
84 $ilLocator->addItem(
$title, $link,
"");
86 if (is_object($this->term) && $this->mode !=
"edit")
88 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"term_id", $this->term->getId());
89 $ilLocator->addItem($this->term->getTerm(),
90 $ilCtrl->getLinkTargetByClass(
"ilglossarypresentationgui",
"listDefinitions"));
91 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"term_id",
$_GET[
"term_id"]);
94 if (is_object($this->definition))
96 $title = $this->term->getTerm().
" (".$this->lng->txt(
"cont_definition").
" ".$this->definition->getNr().
")";
97 if ($this->mode ==
"edit")
99 $link = $ilCtrl->getLinkTargetByClass(
"ilpageobjectgui",
"edit");
103 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"def",
$_GET[
"def"]);
104 $link = $ilCtrl->getLinkTargetByClass(
"ilglossarypresentationgui",
"view");
106 $ilLocator->addItem(
$title, $link);