/** * save properties */ function saveProperties() { global $tpl; $this->initSettingsForm(); if ($this->form->checkInput()) { $this->object->setTitle($_POST['title']); $this->object->setDescription($_POST['description']); $this->object->setOnline(ilUtil::yn2tf($_POST["cobj_online"])); $this->object->setVirtualMode($_POST["glo_mode"]); // $this->object->setActiveGlossaryMenu(ilUtil::yn2tf($_POST["glo_act_menu"])); $this->object->setActiveDownloads(ilUtil::yn2tf($_POST["glo_act_downloads"])); $this->object->setPresentationMode($_POST["pres_mode"]); $this->object->setSnippetLength($_POST["snippet_length"]); $this->object->setShowTaxonomy($_POST["show_tax"]); $this->object->update(); // field order of advanced metadata include_once "./Modules/Glossary/classes/class.ilGlossaryAdvMetaDataAdapter.php"; $adv_ap = new ilGlossaryAdvMetaDataAdapter($this->object->getId()); $cols = $adv_ap->getColumnOrder(); if (count($cols) > 1) { $adv_ap->saveColumnOrder($_POST["field_order"]); } // set definition short texts dirty include_once "./Modules/Glossary/classes/class.ilGlossaryDefinition.php"; ilGlossaryDefinition::setShortTextsDirty($this->object->getId()); // update metadata record selection include_once 'Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php'; $record_gui = new ilAdvancedMDRecordGUI(ilAdvancedMDRecordGUI::MODE_REC_SELECTION, 'glo', $this->object->getId(), "term"); $record_gui->saveSelection(); // Update ecs export settings include_once 'Modules/Glossary/classes/class.ilECSGlossarySettings.php'; $ecs = new ilECSGlossarySettings($this->object); if ($ecs->handleSettingsUpdate()) { ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true); $this->ctrl->redirect($this, "properties"); } } $this->form->setValuesByPost(); $tpl->setContent($this->form->getHTML()); }
/** * save properties */ function saveProperties() { global $tpl; $this->initSettingsForm(); if ($this->form->checkInput()) { $this->object->setOnline(ilUtil::yn2tf($_POST["cobj_online"])); $this->object->setVirtualMode($_POST["glo_mode"]); // $this->object->setActiveGlossaryMenu(ilUtil::yn2tf($_POST["glo_act_menu"])); $this->object->setActiveDownloads(ilUtil::yn2tf($_POST["glo_act_downloads"])); $this->object->setPresentationMode($_POST["pres_mode"]); $this->object->setSnippetLength($_POST["snippet_length"]); $this->object->setShowTaxonomy($_POST["show_tax"]); $this->object->update(); // set definition short texts dirty include_once "./Modules/Glossary/classes/class.ilGlossaryDefinition.php"; ilGlossaryDefinition::setShortTextsDirty($this->object->getId()); // Update ecs export settings include_once 'Modules/Glossary/classes/class.ilECSGlossarySettings.php'; $ecs = new ilECSGlossarySettings($this->object); if ($ecs->handleSettingsUpdate()) { ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true); $this->ctrl->redirect($this, "properties"); } } $this->form->setValuesByPost(); $tpl->setContent($this->form->getHTML()); }