29     protected \ILIAS\Glossary\Editing\EditingGUIRequest 
$request;
    50         $this->
help = $DIC[
"ilHelp"];
    51         $lng = $DIC->language();
    53         $ilCtrl = $DIC->ctrl();
    54         $ilTabs = $DIC->tabs();
    58         $this->
ctrl = $ilCtrl;
    59         $this->
ctrl->saveParameter($this, array(
"term_id"));
    60         $this->tabs_gui = $ilTabs;
    61         $this->request = $DIC->glossary()
    69         $this->
toolbar = $DIC->toolbar();
    71         $this->ref_id = $this->request->getRefId();
    76                 $this->term_glossary = 
new ilObjGlossary($this->ref_id, 
true);
    81         $cs = $DIC->contentStyle();
    82         $this->content_style_gui = $cs->gui();
    83         $this->content_style_domain = $cs->domain();
    90         $next_class = $this->
ctrl->getNextClass($this);
    91         $cmd = $this->
ctrl->getCmd();
    93         $this->log->debug(
"glossary term, next class " . $next_class . 
", cmd: " . $cmd);
    95         switch ($next_class) {
    96             case "iltermdefinitioneditorgui":
    98                 $this->
ctrl->forwardCommand($def_edit);
   102             case "ilpropertyformgui":
   104                 $this->
ctrl->forwardCommand($form);
   107             case "ilobjectmetadatagui":
   109                 $ilTabs->activateTab(
'meta_data');
   111                     $this->term_glossary,
   115                 $this->
ctrl->forwardCommand($md_gui);
   120                 $ret = $this->$cmd();
   127         $this->offline_directory = $offdir;
   138         $this->glossary = $a_glossary;
   139         if (!is_object($this->term_glossary)) {
   140             $this->term_glossary = $a_glossary;
   158         $ilTabs->activateTab(
"properties");
   160         $this->tpl->setTitle($this->
lng->txt(
"cont_term") . 
": " . $this->term->getTerm());
   167         $this->tpl->setContent($ilCtrl->getHTML($a_form));
   175         $form->setFormAction($this->
ctrl->getFormAction($this, 
"updateTerm"));
   176         $form->setTitle($this->
lng->txt(
"cont_edit_term"));
   179         $term->setRequired(
true);
   180         $term->setValue($this->term->getTerm());
   181         $form->addItem($term);
   184         $lang->setRequired(
true);
   186         $lang->setValue($this->term->getLanguage());
   187         $form->addItem(
$lang);
   190         if ($this->term_glossary->getTaxonomyId() > 0) {
   191             $tax_node_assign = 
new ilTaxSelectInputGUI($this->term_glossary->getTaxonomyId(), 
"tax_node", 
true);
   193             $ta = 
new ilTaxNodeAssignment(
"glo", $this->term_glossary->getId(), 
"term", $this->term_glossary->getTaxonomyId());
   194             $assgnmts = $ta->getAssignmentsOfItem($this->term->getId());
   196             foreach ($assgnmts as 
$a) {
   197                 $node_ids[] = $a[
"node_id"];
   199             $tax_node_assign->setValue($node_ids);
   201             $form->addItem($tax_node_assign);
   208             $this->term_glossary->getId(),
   213         $this->record_gui->parse();
   215         $form->addCommandButton(
"updateTerm", $this->
lng->txt(
"save"));
   223         if ($form->checkInput() &&
   224             $this->record_gui->importEditFormPostValues()) {
   226             $this->term->setTerm($form->getInput(
"term"));
   227             $this->term->setLanguage($form->getInput(
"term_language"));
   228             $this->term->update();
   231             if ($this->term_glossary->getTaxonomyId() > 0) {
   232                 $ta = 
new ilTaxNodeAssignment(
"glo", $this->term_glossary->getId(), 
"term", $this->term_glossary->getTaxonomyId());
   234                 foreach ($this->request->getTaxNodes() as $node_id) {
   235                     $ta->addAssignment($node_id, $this->term->getId());
   239             $this->record_gui->writeEditForm();
   240             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"), 
true);
   241             $this->
ctrl->redirect($this, 
"editTerm");
   244         $form->setValuesByPost();
   249         string $a_close_el_id,
   250         string $a_glo_ov_id = 
"",
   252         string $a_outputmode = 
"offline"   260         $tpl = 
new ilTemplate(
"tpl.glossary_overlay.html", 
true, 
true, 
"Modules/Glossary");
   262         if ($a_outputmode == 
"preview") {
   263             $a_outputmode = 
"presentation";
   265         if ($a_outputmode == 
"offline") {
   266             $this->
output(
true, $tpl, $a_outputmode);
   268             $this->
output(
false, $tpl, $a_outputmode);
   270         if ($a_glo_ov_id != 
"") {
   272             $tpl->
setVariable(
"TXT_LINK", $lng->
txtlng(
"content", 
"cont_sco_glossary", $a_lang));
   286         bool $a_offline = 
false,
   288         string $a_outputmode = 
"presentation"   290         if ($a_tpl != null) {
   296         $tpl->
setVariable(
"TXT_TERM", $this->term->getTerm());
   300         $page_gui->setSourcecodeDownloadScript(
"ilias.php?baseClass=ilGlossaryPresentationGUI&ref_id=" . $this->ref_id);
   302             $page_gui->setFullscreenLink(
"fullscreen.html");    
   304         $page_gui->setFileDownloadLink(
"ilias.php?baseClass=ilGlossaryPresentationGUI&cmd=downloadFile&ref_id=" . $this->ref_id);
   307             $page_gui->setOutputMode($a_outputmode);
   309             $page_gui->setOutputMode(
"offline");
   315         $page_gui->setPageLinker($this->page_linker);
   316         $page_gui->setTemplateOutput(
false);
   317         $output = $page_gui->presentation($page_gui->getOutputMode());
   328         $term_links = array();
   331         $page_links = $page->getInternalLinks();
   332         foreach ($page_links as 
$key => $page_link) {
   333             $term_links[
$key] = $page_link;
   347         $gloss_loc->setGlossary($this->glossary);
   348         $gloss_loc->display();
   358         if ($this->request->getTermId() > 0) {
   359             $this->tabs_gui->addTab(
   362                 $this->
ctrl->getLinkTarget($this, 
"editTerm")
   365             $this->tabs_gui->addTab(
   368                 $this->
ctrl->getLinkTarget($this, 
"listUsages")
   372                 $this->term_glossary,
   376             $mdtab = $mdgui->
getTab();
   378                 $this->tabs_gui->addTab(
   380                     $lng->
txt(
"meta_data"),
   385             $this->tabs_gui->addNonTabbedLink(
   387                 $this->
lng->txt(
"glo_presentation_view"),
   389                 "/goto.php?target=" .
   391                 "_" . $this->request->getTermId() . 
"_" . $this->request->getRefId() . 
"&client_id=" . 
CLIENT_ID,
   397         $this->tabs_gui->setBackTarget(
   398             $this->
lng->txt(
"glossary"),
   399             $this->
ctrl->getLinkTargetByClass(
"ilobjglossarygui", 
"listTerms")
   408         $main_tpl = $DIC->ui()->mainTemplate();
   410         $ctrl = $DIC->ctrl();
   411         $lng = $DIC->language();
   412         $ilAccess = $DIC->access();
   418             $ref_ids = array($a_ref_id);
   424         foreach ($ref_ids as $ref_id) {
   426             if ($ilAccess->checkAccess(
"read", 
"", $ref_id)) {
   429                 $ctrl->
redirectByClass(
"ilGlossaryPresentationGUI", 
"listDefinitions");
   433             $main_tpl->setOnScreenMessage(
'failure', sprintf(
   434                 $lng->
txt(
"msg_no_perm_read_item"),
   452         $ilTabs->activateTab(
"usage");
   454         $this->tpl->setTitle($this->
lng->txt(
"cont_term") . 
": " . $this->term->getTerm());
 editTerm(ilPropertyFormGUI $a_form=null)
 
setPropertyForm(ilPropertyFormGUI $form)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
buildDom(bool $a_force=false)
 
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
 
static getLogger(string $a_component_id)
Get component logger. 
 
txtlng(string $a_module, string $a_topic, string $a_language)
gets the text for a given topic in a given language if the topic is not in the list, the topic itself with "-" will be returned 
 
ilAdvancedMDRecordGUI $record_gui
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
 
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...
 
Class ChatMainBarProvider . 
 
static _getAllReferences(int $id)
get all reference ids for object ID 
 
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory) 
 
getLangKey()
Return lang key. 
 
deleteAssignmentsOfItem(int $a_item_id)
 
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string. 
 
setParameterByClass(string $a_class, string $a_parameter, $a_value)
 
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...
 
getOverlayHTML(string $a_close_el_id, string $a_glo_ov_id="", string $a_lang="", string $a_outputmode="offline")
 
ILIAS Style Content GUIService $content_style_gui
 
string $offline_directory
 
setVariable(string $variable, $value='')
Sets the given variable to the given value. 
 
ILIAS Glossary Editing EditingGUIRequest $request
 
quickList()
Set quick term list cmd into left navigation URL. 
 
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...
 
static _lookupTitle(int $obj_id)
 
setContent(string $a_html)
Sets content for standard template. 
 
static _goto(string $a_target, int $a_ref_id=0)
 
setScreenIdComponent(string $a_comp)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static _lookupObjectId(int $ref_id)
 
ILIAS COPage PageLinker $page_linker
 
setOfflineDirectory(string $offdir)
 
setGlossary(ilObjGlossary $a_glossary)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setPageLinker(\ILIAS\COPage\PageLinker $page_linker)
 
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block. 
 
ilObjGlossary $term_glossary
 
static getInstance()
Singleton: get instance for use in ILIAS requests with a config loaded from the settings. 
 
setTemplate(ilGlobalTemplateInterface $main_tpl)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples 
 
ILIAS Style Content DomainService $content_style_domain
 
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block. 
 
static getNumberOfUsages(int $a_term_id)
 
ilGlobalTemplateInterface $tpl
 
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root. 
 
setLeftNavContent(string $a_content)
Sets content of left navigation column. 
 
output(bool $a_offline=false, ilGlobalTemplateInterface $a_tpl=null, string $a_outputmode="presentation")
output glossary term definitions used in ilLMPresentationGUI->ilGlossary() 
 
static _lookGlossaryID(int $term_id)
get glossary id form term id