35 protected \ILIAS\Glossary\InternalDomainService
$domain;
36 protected \ILIAS\Glossary\InternalGUIService
$gui;
37 protected \ILIAS\DI\UIServices
$ui;
70 bool $a_call_by_reference =
true,
71 bool $a_prepare_output =
true 75 $service = $DIC->glossary()->internal();
77 $this->domain = $domain =
$service->domain();
79 $this->
lng = $domain->lng();
80 $this->
user = $domain->user();
81 $this->setting = $domain->settings();
82 $this->
access = $domain->access();
83 $this->rbacsystem = $domain->rbac()->system();
84 $this->log = $domain->log();
86 $this->
ctrl = $gui->ctrl();
87 $this->
toolbar = $gui->toolbar();
88 $this->
tabs = $gui->tabs();
89 $this->
help = $gui->help();
90 $this->
ui = $gui->ui();
91 $this->ui_fac = $gui->ui()->factory();
92 $this->ui_ren = $gui->ui()->renderer();
93 $this->global_screen = $gui->globalScreen();
94 $this->gui_presentation_service = $gui->presentation();
96 $this->edit_request = $gui->editing()->request();
98 $this->requested_table_glossary_term_list_action = $this->edit_request->getTableGlossaryTermListAction();
99 $this->requested_table_glossary_term_list_ids = $this->edit_request->getTableGlossaryTermListIds();
101 $this->
ctrl->saveParameter($this, array(
"ref_id"));
102 $this->
lng->loadLanguageModule(
"content");
103 $this->
lng->loadLanguageModule(
"glo");
110 if (($this->requested_table_glossary_term_list_action ==
"editTerm" 111 || $this->requested_table_glossary_term_list_action ==
"editDefinition")
112 && !empty($this->requested_table_glossary_term_list_ids)) {
113 $this->term_id = $this->requested_table_glossary_term_list_ids[0];
115 $this->term_id = $this->edit_request->getTermId();
118 if ($this->term_id > 0 && $term_glo_id != $this->
object->getId()
122 $this->
ctrl->setParameterByClass(
"ilglossarytermgui",
"term_id", $this->term_id);
124 $this->tax_id = $this->
object->getTaxonomyId();
125 if ($this->tax_id > 0) {
126 $this->
ctrl->saveParameter($this, array(
"show_tax",
"tax_node"));
130 $tax_node = $this->edit_request->getTaxNode();
131 if ($tax_node > 1 && $this->tax->getTree()->readRootId() !=
$tax_node) {
135 if ($this->getGlossary()) {
136 $this->term_manager = $domain->term(
137 $this->getGlossary(),
140 $this->tax_manager = $domain->taxonomy(
145 $this->term_def_bulk_gui = $this->gui_presentation_service
146 ->TermDefinitionBulkCreationGUI($this->getGlossary());
148 $this->in_administration =
149 (strtolower($this->edit_request->getBaseClass()) ==
"iladministrationgui");
150 $cs = $DIC->contentStyle();
151 $this->content_style_gui = $cs->gui();
152 if (is_object($this->
object)) {
153 $this->content_style_domain = $cs->domain()->styleForRefId($this->
object->getRefId());
154 $this->taxonomy = $DIC->taxonomy();
160 $cmd = $this->
ctrl->getCmd();
161 $next_class = $this->
ctrl->getNextClass($this);
163 $this->log->debug(
"glossary term, next class " . $next_class .
", cmd: " . $cmd);
165 switch ($next_class) {
166 case 'ilobjectmetadatagui':
174 $this->tabs_gui->activateTab(
'meta_data');
176 $this->
ctrl->forwardCommand($md_gui);
179 case "ilglossarytermgui":
180 if (!$this->term_perm->checkPermission(
"edit_content", $this->term_id) &&
181 !$this->term_perm->checkPermission(
"write", $this->term_id)) {
185 $this->
ctrl->setReturn($this,
"listTerms");
187 $term_gui->setGlossary($this->getGlossary());
188 $this->
ctrl->forwardCommand($term_gui);
191 case "ilinfoscreengui":
194 $this->
tabs->activateTab(
"info_short");
197 case "ilobjectcontentstylesettingsgui":
201 $this->tabs_gui->activateTab(
"settings");
203 $settings_gui = $this->content_style_gui
204 ->objectSettingsGUIForRefId(
208 $this->
ctrl->forwardCommand($settings_gui);
212 case 'ilpermissiongui':
213 if ($this->in_administration) {
222 $ret = $this->
ctrl->forwardCommand($perm_gui);
225 case "ilcommonactiondispatchergui":
228 $this->
ctrl->forwardCommand($gui);
231 case strtolower(ilTaxonomySettingsGUI::class):
236 $this->
tabs->activateTab(
"settings");
239 $this->
ctrl->setReturn($this,
"properties");
240 $tax_gui = $this->taxonomy->gui()->getSettingsGUI(
242 $this->
lng->txt(
"glo_tax_info"),
246 $ret = $this->
ctrl->forwardCommand($tax_gui);
253 $this->
tabs->activateTab(
"export");
256 $ret = $this->
ctrl->forwardCommand($exp_gui);
259 case 'ilobjectcopygui':
263 $this->
ctrl->forwardCommand($cp);
266 case "ilglossaryforeigntermcollectorgui":
267 if (!$this->rbacsystem->checkAccess(
'write', $this->object->getRefId()) &&
268 !$this->rbacsystem->checkAccess(
'edit_content', $this->object->getRefId())) {
271 $this->
ctrl->setReturn($this,
"");
277 $this->
ctrl->forwardCommand($coll);
280 case "iltermdefinitionbulkcreationgui":
281 if (!$this->rbacsystem->checkAccess(
'write', $this->object->getRefId()) &&
282 !$this->rbacsystem->checkAccess(
'edit_content', $this->object->getRefId())) {
285 $this->
ctrl->setReturn($this,
"listTerms");
286 $this->
ctrl->forwardCommand($this->term_def_bulk_gui);
289 case strtolower(SettingsGUI::class):
293 $this->
tabs->activateTab(
"settings");
297 $gui = $this->gui->settings()->settingsGUI(
304 $this->
ctrl->forwardCommand($gui);
308 if (!$this->rbacsystem->checkAccess(
'write', $this->object->getRefId()) &&
309 !$this->rbacsystem->checkAccess(
'edit_content', $this->object->getRefId())) {
312 $cmd = $this->
ctrl->getCmd(
"listTerms");
314 if (($cmd ==
"create") && ($this->edit_request->getNewType() ==
"term")) {
315 $this->
ctrl->redirectByClass(ilGlossaryTermGUI::class,
"create");
317 if ($this->in_administration ||
327 if ($cmd ==
"redrawHeaderAction") {
328 $cmd =
"redrawHeaderActionObject";
337 $this->tpl->printToStdout();
348 if (isset($glossary) && $glossary->getType() ==
"glo") {
364 $form->
setTitle($this->
lng->txt($new_type .
"_new"));
370 $ti->setRequired(
true);
395 $new_type = $this->edit_request->getNewType();
402 $this->
lng->loadLanguageModule($new_type);
403 $this->
ctrl->setParameter($this,
"new_type", $new_type);
407 $this->
ctrl->setParameter($this,
"new_type",
"");
410 $newObj->setType($new_type);
411 $newObj->setTitle($form->
getInput(
"title"));
412 $newObj->setDescription($form->
getInput(
"desc"));
413 $newObj->setVirtualMode(
"none");
421 $newObj->applyDidacticTemplate($dtpl);
425 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"glo_added"),
true);
426 $this->
ctrl->setParameterByClass(
427 ilObjGlossaryGUI::class,
431 $this->
ctrl->redirectByClass(
432 [ilGlossaryEditorGUI::class, ilObjGlossaryGUI::class],
439 $this->tpl->setContent($form->
getHTML());
447 $this->
lng->loadLanguageModule(
"meta");
450 $info->enablePrivateNotes();
452 if ($this->
access->checkAccess(
"write",
"", $this->requested_ref_id)) {
453 $info->enableNewsEditing();
455 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
456 if ($enable_internal_rss) {
457 $info->setBlockProperty(
"news",
"settings",
true);
460 $info->addMetaDataSections($this->
object->getId(), 0, $this->
object->getType());
462 self::addUsagesToInfo(
$info, $this->
object->getId());
476 $lng = $DIC->language();
477 $ilAccess = $DIC->access();
481 foreach ($sms as $sm) {
484 foreach ($refs as $ref) {
485 if ($link ===
false && $ilAccess->checkAccess(
"write",
"", $ref)) {
486 $link = ilLink::_getLink($ref,
'sahs');
491 if ($link !==
false) {
492 $entry =
"<a href='" . $link .
"' target='_top'>" . $entry .
"</a>";
502 if ($this->in_administration) {
503 parent::viewObject();
507 if (!$this->rbacsystem->checkAccess(
"visible,read", $this->object->getRefId())) {
514 $this->
ctrl->redirectByClass(SettingsGUI::class);
520 $active = $this->
object->getShowTaxonomy();
522 ? $this->
lng->txt(
"yes")
523 : $this->
lng->txt(
"no");
526 $this->
lng->txt(
"glo_show_in_presentation") => $value
534 $this->
ctrl->setParameterByClass(self::class,
"glo_tax_id", $tax_id);
535 $active = $this->
object->getShowTaxonomy();
537 $actions[] = $this->
ui->factory()->button()->shy(
538 $this->
lng->txt(
"glo_show_in_presentation_on"),
539 $this->
ctrl->getLinkTargetByClass(
541 "showTaxInPresentation" 545 $actions[] = $this->
ui->factory()->button()->shy(
546 $this->
lng->txt(
"glo_show_in_presentation_off"),
547 $this->
ctrl->getLinkTargetByClass(
549 "hideTaxInPresentation" 553 $this->
ctrl->setParameterByClass(self::class,
"glo_tax_id",
null);
560 $this->
object->setShowTaxonomy(
true);
561 $this->
object->update();
562 $this->
ctrl->redirectByClass(ilTaxonomySettingsGUI::class);
567 $this->
object->setShowTaxonomy(
false);
568 $this->
object->update();
569 $this->
ctrl->redirectByClass(ilTaxonomySettingsGUI::class);
574 $this->
tabs->activateTab(
"content");
581 if ($this->
object->isVirtual()) {
584 $panel_html = $this->ui_ren->render($panel);
588 $table = $this->domain->table()->getTermListTable($this->getGlossary(), $this->tax_node)->getComponent();
589 $tab_html = $this->ui_ren->render($table);
592 $this->
tabs->activateTab(
"content");
594 $this->tpl->setContent($panel_html . $modals . $tab_html);
609 $ti->setMaxLength(80);
611 $this->
toolbar->addInputItem($ti,
true);
614 $this->
lng->loadLanguageModule(
"meta");
615 $lang = $this->domain->metadata()->getLOMLanguagesForSelectInputs();
616 $session_lang = $this->term_manager->getSessionLang();
617 if ($session_lang !=
"") {
618 $s_lang = $session_lang;
620 $s_lang = $this->
user->getLanguage();
624 $si->setValue($s_lang);
625 $this->
toolbar->addInputItem($si,
true);
627 $this->
toolbar->setFormAction($this->
ctrl->getFormAction($this));
628 $this->
toolbar->addFormButton($this->
lng->txt(
"glo_add_new_term"),
"addTerm");
630 $this->
toolbar->addSeparator();
633 if ($this->
user->clipboardHasObjectsOfType(
"term")) {
635 $this->
lng->txt(
"paste"),
636 $this->
ctrl->getLinkTarget($this,
"pasteTerms")
639 $this->
lng->txt(
"clear_clipboard"),
640 $this->
ctrl->getLinkTarget($this,
"clearClipboard")
644 $this->
lng->txt(
"glo_add_from_other"),
645 $this->
ctrl->getLinkTargetByClass(
"ilglossaryforeigntermcollectorgui",
"")
649 $this->term_def_bulk_gui->modifyToolbar($this->
toolbar);
655 $button = $this->ui_fac->button()->standard($this->
lng->txt(
"glo_add_glossary"),
"")->withOnClick($modal->getShowSignal());
656 $this->modals_to_render[] = $modal;
657 $this->
toolbar->addComponent($button);
666 $glo_ids = $this->
object->getAllGlossaryIds(
true);
667 $at_least_one_glossary =
false;
668 foreach ($glo_ids as $glo_id) {
669 if ($this->
object->getId() === $glo_id) {
674 $glo_link = $this->ui_fac->link()->standard($glossary->getTitle(), ilLink::_getLink($glo_ref_id));
675 $glo_item = $this->ui_fac->item()->standard($glo_link);
676 $glo_item = $glo_item->withDescription($glossary->getDescription());
677 $form_action = $this->
ctrl->getFormActionByClass(ilObjGlossaryGUI::class,
"removeGlossaryFromCollection");
678 $delete_modal = $this->ui_fac->modal()->interruptive(
680 $this->
lng->txt(
"glo_really_remove_from_collection"),
682 )->withAffectedItems([
683 $this->ui_fac->modal()->interruptiveItem()->standard(
685 $glossary->getTitle(),
686 $this->ui_fac->image()->standard(
688 $this->
lng->txt(
"icon") .
" " . $this->
lng->txt(
"obj_" . $glossary->getType())
692 $actions = $this->ui_fac->dropdown()->standard([
693 $this->ui_fac->button()->shy($this->
lng->txt(
"remove"),
"")->withOnClick($delete_modal->getShowSignal()),
695 $glo_item = $glo_item->withActions($actions);
697 $items[] = $glo_item;
698 $this->modals_to_render[] = $delete_modal;
699 $at_least_one_glossary =
true;
703 if (!$at_least_one_glossary) {
704 $message_box = $this->ui_fac->messageBox()->info($this->
lng->txt(
"glo_collection_empty_info"));
707 if (!empty($items)) {
708 $item_group = $this->ui_fac->item()->group($this->
lng->txt(
"glo_selected_glossaries_info"), $items);
709 $panel = $this->ui_fac->panel()->listing()->standard(
710 $this->
lng->txt(
"glo_selected_glossaries"),
723 "showModalForCollection",
725 "saveGlossaryForCollection",
728 $modal = $this->ui_fac->modal()->roundtrip(
729 $this->
lng->txt(
"glo_add_to_collection"),
730 $this->ui_fac->legacy()->content(!$exp->handleCommand() ? $exp->getHTML(
true) :
"")
738 $selected_glo =
new ilObjGlossary($this->edit_request->getSelectedGlossaryRefId(),
true);
739 if ($selected_glo->getId() === $this->
object->getId()) {
740 $this->tpl->setOnScreenMessage(
"info", $this->
lng->txt(
"glo_selected_glossary_is_current_info"),
true);
743 $this->tpl->setOnScreenMessage(
"success", $this->
lng->txt(
"glo_added_to_collection_info"),
true);
745 $this->
ctrl->redirect($this,
"listTerms");
750 $glo_id = $this->edit_request->getGlossaryIdInModal();
751 $this->
object->removeGlossaryFromCollection($glo_id);
752 $this->tpl->setOnScreenMessage(
"success", $this->
lng->txt(
"glo_removed_from_collection_info"),
true);
753 $this->
ctrl->redirect($this,
"listTerms");
758 $this->
ctrl->setParameter($this,
"show_tax", 1);
759 $this->
ctrl->redirect($this,
"listTerms");
767 $this->
ctrl->setParameter($this,
"show_tax",
"");
768 $this->
ctrl->redirect($this,
"listTerms");
777 $new_term = $this->edit_request->getNewTerm();
778 if ($new_term ==
"") {
779 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"cont_please_enter_a_term"),
true);
780 $this->
ctrl->redirect($this,
"listTerms");
784 $lang = $this->edit_request->getTermLanguage();
791 $this->term_manager->setSessionLang(
$lang);
793 $this->
ctrl->setParameterByClass(
"ilglossarydefpagegui",
"term_id", $term->
getId());
794 $this->
ctrl->redirectByClass(array(
"ilglossarytermgui",
795 "iltermdefinitioneditorgui",
"ilglossarydefpagegui"),
"edit");
804 $glo_exp->buildExportFileHTML();
805 $this->
ctrl->redirectByClass(
"ilexportgui",
"");
810 if (!empty($this->edit_request->getTermIdsInModal())
811 && $ids = $this->edit_request->getTermIdsInModal()) {
812 foreach ($ids as
$id) {
818 $this->term_manager->deleteTerm($id);
822 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
823 $this->
ctrl->redirect($this,
"listTerms");
828 if (strtolower($this->edit_request->getBaseClass()) !=
"ilglossaryeditorgui") {
829 parent::setLocator();
830 } elseif (is_object($this->
object)) {
832 if (is_object($this->term)) {
833 $gloss_loc->setTerm($this->term);
835 $gloss_loc->setGlossary($this->getGlossary());
836 $gloss_loc->display();
847 $this->tpl->loadStandardTemplate();
849 $title = $this->
object->getTitle();
852 if ($this->term_id > 0) {
853 $this->tpl->setTitle($this->
lng->txt(
"term") .
": " .
856 parent::setTitleAndDescription();
858 $this->tpl->setTitle($this->
lng->txt(
"glo") .
": " . $title);
864 $this->
help->setScreenIdComponent(
"glo");
867 $cmd = $this->
ctrl->getCmd();
868 $force_active = ($cmd ==
"" || $cmd ==
"listTerms");
871 if ($this->rbacsystem->checkAccess(
'write', $this->object->getRefId()) ||
872 $this->rbacsystem->checkAccess(
'edit_content', $this->object->getRefId())) {
873 $this->tabs_gui->addTab(
875 $this->
lng->txt(
"content"),
876 $this->
ctrl->getLinkTarget($this,
"listTerms")
880 $this->tabs_gui->addTab(
882 $this->
lng->txt(
"info_short"),
883 $this->
ctrl->getLinkTargetByClass(
"ilinfoscreengui",
"showSummary")
887 if ($this->rbacsystem->checkAccess(
'write', $this->object->getRefId())) {
888 $this->tabs_gui->addTab(
890 $this->
lng->txt(
"settings"),
891 $this->
ctrl->getLinkTargetByClass(SettingsGUI::class)
896 $mdtab = $mdgui->getTab();
898 $this->tabs_gui->addTab(
900 $this->
lng->txt(
"meta_data"),
906 $this->tabs_gui->addTab(
908 $this->
lng->txt(
"export"),
909 $this->
ctrl->getLinkTargetByClass(
"ilexportgui",
"")
914 if ($this->rbacsystem->checkAccess(
'edit_permission', $this->object->getRefId())) {
915 $this->tabs_gui->addTab(
917 $this->
lng->txt(
"perm_settings"),
918 $this->
ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm")
922 $this->tabs_gui->addNonTabbedLink(
924 $this->
lng->txt(
"glo_presentation_view"),
925 "ilias.php?baseClass=ilGlossaryPresentationGUI&ref_id=" . $this->
object->getRefId()
933 array(
"general_settings",
"style",
"taxonomy",
"glossaries")
936 $this->
tabs->addSubTab(
938 $this->
lng->txt(
"settings"),
939 $this->
ctrl->getLinkTarget($this,
'properties')
943 $this->
tabs->addSubTab(
945 $this->
lng->txt(
"obj_sty"),
946 $this->
ctrl->getLinkTargetByClass(
"ilobjectcontentstylesettingsgui",
'')
949 $this->taxonomy->gui()->addSettingsSubTab($this->
getObject()->
getId());
952 $this->
tabs->addSubTab(
954 $this->
lng->txt(
"cont_auto_glossaries"),
955 $this->
ctrl->getLinkTarget($this,
'editGlossaries')
958 $this->
tabs->activateSubTab($a_active);
963 public static function _goto(
string $a_target): void
966 $main_tpl = $DIC->ui()->mainTemplate();
968 $lng = $DIC->language();
969 $ilAccess = $DIC->access();
970 $ctrl = $DIC->ctrl();
972 if ($ilAccess->checkAccess(
"read",
"", $a_target)) {
975 } elseif ($ilAccess->checkAccess(
"visible",
"", $a_target)) {
979 $main_tpl->setOnScreenMessage(
'failure', sprintf(
980 $lng->
txt(
"msg_no_perm_read_item"),
997 if ($a_tpl !=
null) {
1003 $this->content_style_gui->
addCss($ctpl, $this->
object->getRefId());
1013 if (is_null($this->tax_manager) || !$this->tax_manager->showInEditing()) {
1017 $tool_context = $this->global_screen->tool()->context()->current();
1019 $tax_id = $this->tax_manager->getTaxonomyId();
1021 $tool_context->addAdditionalData(
1025 $tool_context->addAdditionalData(
1029 $tool_context->addAdditionalData(
1033 $tool_context->addAdditionalData(
1037 $tool_context->addAdditionalData(
1052 $this->
tabs->setTabActive(
"settings");
1056 $this->
lng->txt(
"add"),
1057 $this->
ctrl->getLinkTarget($this,
"showGlossarySelector")
1060 $table = $this->domain->table()->getGlossaryAutoLinkTable($this->getGlossary())->getComponent();
1062 $this->tpl->setContent($this->ui_ren->render($table));
1070 $this->
tabs->setTabActive(
"settings");
1074 $search_root_expand = $this->edit_request->getSearchRootExpand();
1075 $exp->
setExpand($search_root_expand ?: $this->tree->readRootId());
1076 $exp->setExpandTarget($this->
ctrl->getLinkTarget($this,
'showGlossarySelector'));
1077 $exp->setTargetClass(get_class($this));
1078 $exp->setCmd(
'confirmGlossarySelection');
1079 $exp->setClickableTypes(array(
"glo"));
1080 $exp->addFilter(
"glo");
1084 $this->tpl->setContent($exp->getOutput());
1090 $this->
ctrl->setParameter($this,
"glo_ref_id", $this->edit_request->getGlossaryRefId());
1091 $cgui->setFormAction($this->
ctrl->getFormAction($this));
1092 $cgui->setHeaderText($this->
lng->txt(
"glo_link_glo_in_glo"));
1093 $cgui->setCancel($this->
lng->txt(
"no"),
"selectGlossary");
1094 $cgui->setConfirm($this->
lng->txt(
"yes"),
"selectGlossaryLink");
1095 $this->tpl->setContent($cgui->getHTML());
1103 $glo_ref_id = $this->edit_request->getGlossaryRefId();
1104 $this->
object->autoLinkGlossaryTerms($glo_ref_id);
1114 $glos = $this->
object->getAutoGlossaries();
1115 $glo_ref_id = $this->edit_request->getGlossaryRefId();
1117 if (!in_array($glo_id, $glos)) {
1120 $this->
object->setAutoGlossaries($glos);
1121 $this->
object->update();
1123 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
1124 $this->
ctrl->redirect($this,
"editGlossaries");
1129 $this->
object->removeAutoGlossary($this->edit_request->getGlossaryIdInModal());
1130 $this->
object->update();
1132 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
1133 $this->
ctrl->redirect($this,
"editGlossaries");
1144 $this->tpl->setOnScreenMessage(
'info', $this->
lng->txt(
"glo_selected_terms_have_been_copied"),
true);
1145 $this->
ctrl->redirect($this,
"listTerms");
1156 $this->tpl->setOnScreenMessage(
'info', $this->
lng->txt(
"glo_selected_terms_have_been_copied"),
true);
1157 $this->
ctrl->redirect($this,
"listTerms");
1162 $this->
user->clipboardDeleteObjectsOfType(
"term");
1163 $time = date(
"Y-m-d H:i:s");
1165 if (($this->requested_table_glossary_term_list_action ===
"copyTerms" 1166 || $this->requested_table_glossary_term_list_action ===
"referenceTerms")
1167 && !empty($this->requested_table_glossary_term_list_ids)
1168 && $this->requested_table_glossary_term_list_ids[0] ===
"ALL_OBJECTS" 1170 $terms = $this->
object->getTermList(
1181 foreach ($terms as $term) {
1182 $this->
user->addObjectToClipboard(
1191 } elseif ($this->requested_table_glossary_term_list_action ===
"copyTerms" 1192 || $this->requested_table_glossary_term_list_action ===
"referenceTerms") {
1193 foreach ($this->requested_table_glossary_term_list_ids as $term_id) {
1194 $this->
user->addObjectToClipboard(
1204 if (empty($this->requested_table_glossary_term_list_ids)) {
1205 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"no_checkbox"),
true);
1206 $this->
ctrl->redirect($this,
"listTerms");
1213 $this->
user->clipboardDeleteObjectsOfType(
"term");
1214 $this->
ctrl->redirect($this,
"listTerms");
1220 foreach ($this->
user->getClipboardObjects(
"term") as $item) {
1226 foreach ($this->
user->getClipboardObjects(
"term") as $item) {
1231 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_obj_modified"),
true);
1232 $this->
ctrl->redirect($this,
"listTerms");
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct( $a_data, int $a_id=0, bool $a_call_by_reference=true, bool $a_prepare_output=true)
static getInstance(ilObjGlossaryGUI $a_glossary_gui)
GUI class for ilGlossary.
static setAction(string $a_action)
ILIAS GlobalScreen Services $global_screen
getProperties(int $tax_id)
deleteTerm(int $a_term_id)
ilTermDefinitionBulkCreationGUI $term_def_bulk_gui
static addUsagesToInfo(ilInfoScreenGUI $info, int $glo_id)
Add usages to info screen.
static _getIcon(int $obj_id=0, string $size="big", string $type="", bool $offline=false)
Get icon for repository item.
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...
addGlossaryForCollection(int $glo_id)
GUI class for the workflow of copying objects.
editGlossaries()
Edit automatically linked glossaries.
ILIAS Glossary Presentation GUIService $gui_presentation_service
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepareOutput(bool $show_sub_objects=true)
initCreateForm(string $new_type)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer Contains several chained tasks and infos about them.
static _getAllReferences(int $id)
get all reference ids for object ID
ILIAS Glossary Term TermManager $term_manager
addProperty(string $a_name, string $a_value, string $a_link="")
add a property to current section
static getScormModulesForGlossary(int $a_glo_id)
Get SCORM modules that assign a certain glossary.
getDidacticTemplateVar(string $type)
Get didactic template setting from creation screen.
removeGlossaryFromCollection()
setParameterByClass(string $a_class, string $a_parameter, $a_value)
array $requested_table_glossary_term_list_ids
exportHTML()
create html package
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
createObject()
create new object form
saveGlossaryForCollection()
redirectByClass( $a_class, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
setGlossary(ilObjGlossary $a_glossary)
static isReferenced(array $a_glo_id, int $a_term_id)
Is a term referenced by a set of glossaries.
static _lookupObjId(int $ref_id)
static _copyTerm(int $a_term_id, int $a_glossary_id)
Copy a term to a glossary.
ILIAS Glossary Taxonomy TaxonomyManager $tax_manager
showTaxonomy()
Show taxonomy.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ILIAS Style Content GUIService $content_style_gui
ilGlobalTemplateInterface $tpl
ILIAS Glossary Editing EditingGUIRequest $edit_request
ilGlossaryTermPermission $term_perm
deactTaxonomy()
Hide Taxonomy.
static _lookupTitle(int $obj_id)
confirmGlossarySelection()
create(bool $a_omit_page_creation=false)
selectGlossaryLink()
Select a glossary and link all its terms.
initDidacticTemplate(ilPropertyFormGUI $form)
Class ilObjectGUI Basic methods of all Output classes.
static _lookGlossaryTerm(int $term_id)
get glossary term
static _goto(string $a_target)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
addSection(string $a_title)
showToolbarForCollection()
showSelectedGlossariesForCollection()
ILIAS Style Content Object ObjectFacade $content_style_domain
copyTerms()
Copy terms to clipboard.
putObjectInTree(ilObject $obj, ?int $parent_node_id=null)
Add object to tree at given position.
checkPermissionBool(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
setLanguage(string $a_language)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setContentStyleSheet(?ilGlobalTemplateInterface $a_tpl=null)
setSettingsSubTabs(string $a_active)
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
__construct(Container $dic, ilPlugin $plugin)
This class represents a text area property in a property form.
selectGlossary()
Select auto glossary.
referenceTerms()
Add terms to be referenced to clipboard.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS Glossary InternalGUIService $gui
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
showGlossarySelector()
Show auto glossary selection.
addHeaderAction()
Add header action menu.
ILIAS Glossary InternalDomainService $domain
ILIAS UI Renderer $ui_ren
checkPermission(string $perm, string $cmd="", string $type="", ?int $ref_id=null)
ILIAS Taxonomy Service $taxonomy
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
setExpand($a_node_id)
set the expand option this value is stored in a SESSION variable to save it different view (lo view...
string $requested_table_glossary_term_list_action
static _gotoRepositoryRoot(bool $raise_error=false)
Goto repository root.
static _lookGlossaryID(int $term_id)
get glossary id form term id