43         $this->
ctrl = $DIC->ctrl();
    44         $this->
locator = $DIC[
"ilLocator"];
    45         $lng = $DIC->language();
    47         $tree = $DIC->repositoryTree();
    50         $this->temp_var = 
"LOCATOR";
    54         $this->presentation_request = $DIC->glossary()
    63         $this->temp_var = $a_temp_var;
    68         $this->term = $a_term;
    73         $this->glossary = $a_glossary;
    76     public function setMode(
string $a_mode): void
    78         $this->mode = $a_mode;
    91         $ilLocator->addRepositoryItems();
    94         $title = $this->glossary->getTitle();
    95         if ($this->mode == 
"edit") {
    96             $link = $ilCtrl->getLinkTargetByClass(
"ilobjglossarygui", 
"listTerms");
    98             $ilCtrl->setParameterByClass(
"ilglossarypresentationgui", 
"term_id", 
"");
    99             $link = $ilCtrl->getLinkTargetByClass(
"ilglossarypresentationgui");
   100             if (is_object($this->term)) {
   101                 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui", 
"term_id", $this->term->getId());
   104         $ilLocator->addItem($title, $link, 
"");
   106         if (is_object($this->term) && $this->mode != 
"edit") {
   107             $ilCtrl->setParameterByClass(
"ilglossarypresentationgui", 
"term_id", $this->term->getId());
   109                 $this->term->getTerm(),
   110                 $ilCtrl->getLinkTargetByClass(
"ilglossarypresentationgui", 
"listDefinitions")
   112             $ilCtrl->setParameterByClass(
   113                 "ilglossarypresentationgui",
   115                 $this->presentation_request->getTermId()
   117         } elseif (is_object($this->term)) {
   118             $title = $this->term->getTerm() . 
" (" . $this->
lng->txt(
"cont_definition") . 
")";
   119             $link = $ilCtrl->getLinkTargetByClass(
"ilglossarydefpagegui", 
"edit");
   120             $ilLocator->addItem($title, $link);
 
setLocator()
Insert locator. 
 
setGlossary(ilObjGlossary $a_glossary)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
PresentationGUIRequest $presentation_request
 
ilGlobalTemplateInterface $tpl
 
setTemplateVariable(string $a_temp_var)
 
setTerm(ilGlossaryTerm $a_term)