ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilGlossaryTermGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
13{
17 protected $ctrl;
18
22 protected $tabs_gui;
23
27 protected $help;
28
32 protected $page_linker;
33
34 public $lng;
35 public $tpl;
36 public $glossary;
37 public $term;
38 public $link_xml;
39
43 protected $log;
44
48 protected $term_glossary = null;
49
53 protected $toolbar;
54
59 public function __construct($a_id = 0)
60 {
61 global $DIC;
62
63 $this->help = $DIC["ilHelp"];
64 $lng = $DIC->language();
65 $tpl = $DIC["tpl"];
66 $ilCtrl = $DIC->ctrl();
67 $ilTabs = $DIC->tabs();
68
69 $this->lng = $lng;
70 $this->tpl = $tpl;
71 $this->ctrl = $ilCtrl;
72 $this->ctrl->saveParameter($this, array("term_id"));
73 $this->tabs_gui = $ilTabs;
74
75 $this->log = ilLoggerFactory::getLogger('glo');
76
77 $this->toolbar = $DIC->toolbar();
78
79 $this->ref_id = $_GET["ref_id"];
80
81 if ($a_id != 0) {
82 $this->term = new ilGlossaryTerm($a_id);
84 $this->term_glossary = new ilObjGlossary($this->ref_id, true);
85 } else {
86 $this->term_glossary = new ilObjGlossary(ilGlossaryTerm::_lookGlossaryID($a_id), false);
87 }
88 }
89 }
90
94 public function executeCommand()
95 {
96 $ilTabs = $this->tabs_gui;
97
98 $next_class = $this->ctrl->getNextClass($this);
99 $cmd = $this->ctrl->getCmd();
100
101 $this->log->debug("glossary term, next class " . $next_class . ", cmd: " . $cmd);
102
103 switch ($next_class) {
104 case "iltermdefinitioneditorgui":
105 //$this->ctrl->setReturn($this, "listDefinitions");
106 $def_edit = new ilTermDefinitionEditorGUI();
107 //$ret = $def_edit->executeCommand();
108 $ret = $this->ctrl->forwardCommand($def_edit);
109 $this->quickList("edit", $def_edit);
110 break;
111
112 case "ilpropertyformgui":
113 $form = $this->getEditTermForm();
114 $this->ctrl->forwardCommand($form);
115 break;
116
117 case "ilobjectmetadatagui":
118 $this->setTabs();
119 $ilTabs->activateTab('meta_data');
120 $md_gui = new ilObjectMetaDataGUI(
121 $this->term_glossary,
122 'term',
123 $this->term->getId()
124 );
125 $this->ctrl->forwardCommand($md_gui);
126 $this->quickList();
127 break;
128
129 default:
130 $ret = $this->$cmd();
131 break;
132 }
133 }
134
140 public function setOfflineDirectory($offdir)
141 {
142 $this->offline_directory = $offdir;
143 }
144
145
150 public function getOfflineDirectory()
151 {
152 return $this->offline_directory;
153 }
154
155
156 public function setGlossary($a_glossary)
157 {
158 $this->glossary = $a_glossary;
159 if (!is_object($this->term_glossary)) {
160 $this->term_glossary = $a_glossary;
161 }
162 }
163
165 {
166 $this->page_linker = $page_linker;
167 }
168
172 public function create()
173 {
174 // deprecated
175 }
176
180 public function saveTerm()
181 {
182 // deprecated
183 }
184
185
189 public function editTerm(ilPropertyFormGUI $a_form = null)
190 {
191 $ilTabs = $this->tabs_gui;
192 $ilCtrl = $this->ctrl;
193
194 // $this->getTemplate();
195 $this->displayLocator();
196 $this->setTabs();
197 $ilTabs->activateTab("properties");
198
199 $this->tpl->setTitle($this->lng->txt("cont_term") . ": " . $this->term->getTerm());
200 $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_glo.svg"));
201
202 if (!$a_form) {
203 $a_form = $this->getEditTermForm();
204 }
205
206 $this->tpl->setContent($ilCtrl->getHTML($a_form));
207
208 $this->quickList();
209 }
210
217 public function getEditTermForm()
218 {
219 $ilTabs = $this->tabs_gui;
220 $ilCtrl = $this->ctrl;
221
222 $form = new ilPropertyFormGUI();
223 $form->setFormAction($this->ctrl->getFormAction($this, "updateTerm"));
224 $form->setTitle($this->lng->txt("cont_edit_term"));
225
226 $term = new ilTextInputGUI($this->lng->txt("cont_term"), "term");
227 $term->setRequired(true);
228 $term->setValue($this->term->getTerm());
229 $form->addItem($term);
230
231 $lang = new ilSelectInputGUI($this->lng->txt("language"), "term_language");
232 $lang->setRequired(true);
234 $lang->setValue($this->term->getLanguage());
235 $form->addItem($lang);
236
237 // taxonomy
238 if ($this->term_glossary->getTaxonomyId() > 0) {
239 $tax_node_assign = new ilTaxSelectInputGUI($this->term_glossary->getTaxonomyId(), "tax_node", true);
240
241 $ta = new ilTaxNodeAssignment("glo", $this->term_glossary->getId(), "term", $this->term_glossary->getTaxonomyId());
242 $assgnmts = $ta->getAssignmentsOfItem($this->term->getId());
243 $node_ids = array();
244 foreach ($assgnmts as $a) {
245 $node_ids[] = $a["node_id"];
246 }
247 $tax_node_assign->setValue($node_ids);
248
249 $form->addItem($tax_node_assign);
250 }
251
252 // advanced metadata
253 $this->record_gui = new ilAdvancedMDRecordGUI(
255 'glo',
256 $this->term_glossary->getId(),
257 'term',
258 $this->term->getId()
259 );
260 $this->record_gui->setPropertyForm($form);
261 $this->record_gui->parse();
262
263 $form->addCommandButton("updateTerm", $this->lng->txt("save"));
264
265 return $form;
266 }
267
268
269
273 public function updateTerm()
274 {
275 $form = $this->getEditTermForm();
276 if ($form->checkInput() &&
277 $this->record_gui->importEditFormPostValues()) {
278 // update term
279 $this->term->setTerm(ilUtil::stripSlashes($_POST["term"]));
280 $this->term->setLanguage($_POST["term_language"]);
281 $this->term->update();
282
283 // update taxonomy assignment
284 if ($this->term_glossary->getTaxonomyId() > 0) {
285 $ta = new ilTaxNodeAssignment("glo", $this->term_glossary->getId(), "term", $this->term_glossary->getTaxonomyId());
286 $ta->deleteAssignmentsOfItem($this->term->getId());
287 if (is_array($_POST["tax_node"])) {
288 foreach ($_POST["tax_node"] as $node_id) {
289 $ta->addAssignment($node_id, $this->term->getId());
290 }
291 }
292 }
293
294 $this->record_gui->writeEditForm();
295 ilUtil::sendSuccess($this->lng->txt("msg_obj_modified"), true);
296 $this->ctrl->redirect($this, "editTerm");
297 }
298
299 $form->setValuesByPost();
300 $this->editTerm($form);
301 }
302
309 public function getOverlayHTML($a_close_el_id, $a_glo_ov_id = "", $a_lang = "", $a_outputmode = "offline")
310 {
312
313 if ($a_lang == "") {
314 $a_lang = $lng->getLangKey();
315 }
316
317 $tpl = new ilTemplate("tpl.glossary_overlay.html", true, true, "Modules/Glossary");
318 // $this->output(true, $tpl);
319 if ($a_outputmode == "preview") {
320 $a_outputmode = "presentation";
321 }
322 if ($a_outputmode == "offline") {
323 $this->output(true, $tpl, $a_outputmode);
324 } else {
325 $this->output(false, $tpl, $a_outputmode);
326 }
327 if ($a_glo_ov_id != "") {
328 $tpl->setCurrentBlock("glovlink");
329 $tpl->setVariable("TXT_LINK", $lng->txtlng("content", "cont_sco_glossary", $a_lang));
330 $tpl->setVariable("ID_LINK", $a_glo_ov_id);
331 $tpl->parseCurrentBlock();
332 }
333 $tpl->setVariable("TXT_CLOSE", $lng->txtlng("common", "close", $a_lang));
334 $tpl->setVariable("ID_CLOSE", $a_close_el_id);
335 return $tpl->get();
336 }
337
343 public function output($a_offline = false, $a_tpl = "", $a_outputmode = "presentation")
344 {
345 if ($a_tpl != "") {
346 $tpl = $a_tpl;
347 } else {
349 }
350
351 $defs = ilGlossaryDefinition::getDefinitionList($this->term->getId());
352
353 $tpl->setVariable("TXT_TERM", $this->term->getTerm());
354
355 for ($j = 0; $j < count($defs); $j++) {
356 $def = $defs[$j];
357 $page_gui = new ilGlossaryDefPageGUI($def["id"]);
358 $page_gui->setSourcecodeDownloadScript("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=" . $_GET["ref_id"]);
359 if (!$a_offline) {
360 //$page_gui->setFullscreenLink(
361 // "ilias.php?baseClass=ilGlossaryPresentationGUI&cmd=fullscreen&ref_id=".$_GET["ref_id"]);
362 } else {
363 $page_gui->setFullscreenLink("fullscreen.html"); // id is set by xslt
364 }
365 $page_gui->setFileDownloadLink("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;cmd=downloadFile&amp;ref_id=" . $_GET["ref_id"]);
366
367 if (!$a_offline) {
368 $page_gui->setOutputMode($a_outputmode);
369 } else {
370 $page_gui->setOutputMode("offline");
371 $page_gui->setOfflineDirectory($this->getOfflineDirectory());
372 }
373
374 //$page_gui->setOutputMode("edit");
375 //$page_gui->setPresentationTitle($this->term->getTerm());
376 $page_gui->setPageLinker($this->page_linker);
377 $page_gui->setTemplateOutput(false);
378 $output = $page_gui->presentation($page_gui->getOutputMode());
379
380 if (count($defs) > 1) {
381 $tpl->setCurrentBlock("definition_header");
382 $tpl->setVariable(
383 "TXT_DEFINITION",
384 $this->lng->txt("cont_definition") . " " . ($j + 1)
385 );
386 $tpl->parseCurrentBlock();
387 }
388
389 ilMathJax::getInstance()->includeMathJax($tpl);
390
391 $tpl->setCurrentBlock("definition");
392 $tpl->setVariable("PAGE_CONTENT", $output);
393 $tpl->parseCurrentBlock();
394 }
395 }
396
400 public function getInternalLinks()
401 {
402 $defs = ilGlossaryDefinition::getDefinitionList($this->term->getId());
403
404 $term_links = array();
405 for ($j = 0; $j < count($defs); $j++) {
406 $def = $defs[$j];
407 $page = new ilGlossaryDefPage($def["id"]);
408 $page->buildDom();
409 $page_links = $page->getInternalLinks();
410 foreach ($page_links as $key => $page_link) {
411 $term_links[$key] = $page_link;
412 }
413 }
414
415 return $term_links;
416 }
417
421 public function listDefinitions()
422 {
423 $ilTabs = $this->tabs_gui;
424
425 // $this->getTemplate();
426 $this->displayLocator();
427 $this->setTabs();
428 $ilTabs->activateTab("definitions");
429
430 // content style
431 $this->tpl->addCss(ilObjStyleSheet::getContentStylePath($this->term_glossary->getStyleSheetId()));
432 $this->tpl->addCss(ilObjStyleSheet::getSyntaxStylePath());
433
434
435 // load template for table
436 $tpl = new ilTemplate("tpl.glossary_definition_list.html", true, true, "Modules/Glossary");
437
438 $this->tpl->setTitle(
439 $this->lng->txt("cont_term") . ": " . $this->term->getTerm()
440 );
441 $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_glo.svg"));
442
443 $tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
444
445 $tpl->setCurrentBlock("add_def");
446 $tpl->setVariable(
447 "TXT_ADD_DEFINITION",
448 $this->lng->txt("cont_add_definition")
449 );
450 $tpl->setVariable("BTN_ADD", "addDefinition");
451 $tpl->parseCurrentBlock();
452// $tpl->setCurrentBlock("def_list");
453
455
456 $tpl->setVariable("TXT_TERM", $this->term->getTerm());
457
458 for ($j = 0; $j < count($defs); $j++) {
459 $def = $defs[$j];
460 $page_gui = new ilGlossaryDefPageGUI($def["id"]);
461 $page_gui->setStyleId($this->term_glossary->getStyleSheetId());
462 $page_gui->setSourcecodeDownloadScript("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=" . $_GET["ref_id"]);
463 $page_gui->setTemplateOutput(false);
464 $output = $page_gui->preview();
465
466 if (count($defs) > 1) {
467 $tpl->setCurrentBlock("definition_header");
468 $tpl->setVariable(
469 "TXT_DEFINITION",
470 $this->lng->txt("cont_definition") . " " . ($j + 1)
471 );
472 $tpl->parseCurrentBlock();
473 }
474
475 if ($j > 0) {
476 $tpl->setCurrentBlock("up");
477 $tpl->setVariable("TXT_UP", $this->lng->txt("up"));
478 $this->ctrl->setParameter($this, "def", $def["id"]);
479 $tpl->setVariable(
480 "LINK_UP",
481 $this->ctrl->getLinkTarget($this, "moveUp")
482 );
483 $tpl->parseCurrentBlock();
484 }
485
486 if ($j + 1 < count($defs)) {
487 $tpl->setCurrentBlock("down");
488 $tpl->setVariable("TXT_DOWN", $this->lng->txt("down"));
489 $this->ctrl->setParameter($this, "def", $def["id"]);
490 $tpl->setVariable(
491 "LINK_DOWN",
492 $this->ctrl->getLinkTarget($this, "moveDown")
493 );
494 $tpl->parseCurrentBlock();
495 }
496 $tpl->setCurrentBlock("submit_btns");
497 $tpl->setVariable("TXT_EDIT", $this->lng->txt("edit"));
498 $this->ctrl->setParameter($this, "def", $def["id"]);
499 $this->ctrl->setParameterByClass("ilTermDefinitionEditorGUI", "def", $def["id"]);
500 $tpl->setVariable(
501 "LINK_EDIT",
502 $this->ctrl->getLinkTargetByClass(array("ilTermDefinitionEditorGUI", "ilGlossaryDefPageGUI"), "edit")
503 );
504 $tpl->setVariable("TXT_DELETE", $this->lng->txt("delete"));
505 $tpl->setVariable(
506 "LINK_DELETE",
507 $this->ctrl->getLinkTarget($this, "confirmDefinitionDeletion")
508 );
509 $tpl->parseCurrentBlock();
510
511 $tpl->setCurrentBlock("definition");
512 $tpl->setVariable("PAGE_CONTENT", $output);
513 $tpl->parseCurrentBlock();
514 }
515
516 // remove default "edit" entry from page preview
517 $this->toolbar->setItems([]);
518
519 $this->tpl->setContent($tpl->get());
520
521 //$this->tpl->setCurrentBlock("def_list");
522 //$this->tpl->parseCurrentBlock();
523
524 $this->quickList();
525 }
526
527
532 {
533 $ilTabs = $this->tabs_gui;
534
535 //$this->getTemplate();
536 $this->displayLocator();
537 $this->setTabs();
538 $ilTabs->activateTab("definitions");
539
540 $this->tpl->addCss(ilObjStyleSheet::getContentStylePath($this->term_glossary->getStyleSheetId()));
541 $this->tpl->addCss(ilObjStyleSheet::getSyntaxStylePath());
542
543 $this->tpl->setTitle(
544 $this->lng->txt("cont_term") . ": " . $this->term->getTerm()
545 );
546 $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_glo.svg"));
547
548 $dtpl = new ilTemplate("tpl.glossary_definition_delete.html", true, true, "Modules/Glossary");
549 ilUtil::sendQuestion($this->lng->txt("info_delete_sure"));
550
551 $this->tpl->setVariable("TXT_TERM", $this->term->getTerm());
552
553 $definition = new ilGlossaryDefinition($_GET["def"]);
554 $page_gui = new ilGlossaryDefPageGUI($definition->getId());
555 $page_gui->setTemplateOutput(false);
556 $page_gui->setStyleId($this->term_glossary->getStyleSheetId());
557 $page_gui->setSourcecodeDownloadScript("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=" . $_GET["ref_id"]);
558 $page_gui->setFileDownloadLink("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=" . $_GET["ref_id"]);
559 $page_gui->setFullscreenLink("ilias.php?baseClass=ilGlossaryPresentationGUI&amp;ref_id=" . $_GET["ref_id"]);
560 $output = $page_gui->preview();
561
562 $dtpl->setCurrentBlock("definition");
563 $dtpl->setVariable("PAGE_CONTENT", $output);
564 $dtpl->setVariable("TXT_CANCEL", $this->lng->txt("cancel"));
565 $dtpl->setVariable(
566 "LINK_CANCEL",
567 $this->ctrl->getLinkTarget($this, "cancelDefinitionDeletion")
568 );
569 $dtpl->setVariable("TXT_CONFIRM", $this->lng->txt("confirm"));
570 $this->ctrl->setParameter($this, "def", $definition->getId());
571 $dtpl->setVariable(
572 "LINK_CONFIRM",
573 $this->ctrl->getLinkTarget($this, "deleteDefinition")
574 );
575 $dtpl->parseCurrentBlock();
576
577 $this->tpl->setContent($dtpl->get());
578 }
579
580 public function cancelDefinitionDeletion()
581 {
582 $this->ctrl->redirect($this, "listDefinitions");
583 }
584
585
586 public function deleteDefinition()
587 {
588 $definition = new ilGlossaryDefinition($_GET["def"]);
589 $definition->delete();
590 $this->ctrl->redirect($this, "listDefinitions");
591 }
592
593
597 public function moveUp()
598 {
599 $definition = new ilGlossaryDefinition($_GET["def"]);
600 $definition->moveUp();
601 $this->ctrl->redirect($this, "listDefinitions");
602 }
603
604
608 public function moveDown()
609 {
610 $definition = new ilGlossaryDefinition($_GET["def"]);
611 $definition->moveDown();
612 $this->ctrl->redirect($this, "listDefinitions");
613 }
614
615
619 public function addDefinition()
620 {
621 $ilCtrl = $this->ctrl;
622
623 $ilCtrl->setParameterByClass("ilobjglossarygui", "term_id", $this->term->getId());
624 $ilCtrl->redirectByClass("ilobjglossarygui", "addDefinition");
625 }
626
630 public function cancel()
631 {
632 $this->ctrl->redirect($this, "listDefinitions");
633 }
634
638 public function saveDefinition()
639 {
640 $def = new ilGlossaryDefinition();
641 $def->setTermId($_GET["term_id"]);
642 $def->setTitle(ilUtil::stripSlashes($_POST["title"]));#"content object ".$newObj->getId()); // set by meta_gui->save
643 $def->setDescription(ilUtil::stripSlashes($_POST["desc"])); // set by meta_gui->save
644 $def->create();
645
646 $this->ctrl->redirect($this, "listDefinitions");
647 }
648
652 public function setTabs()
653 {
654 $this->getTabs();
655 }
656
660 public function displayLocator()
661 {
662 $gloss_loc = new ilGlossaryLocatorGUI();
663 $gloss_loc->setTerm($this->term);
664 $gloss_loc->setGlossary($this->glossary);
665 //$gloss_loc->setDefinition($this->definition);
666 $gloss_loc->display();
667 }
668
669
673 public function getTabs()
674 {
676 $ilHelp = $this->help;
677
678
679 $ilHelp->setScreenIdComponent("glo_term");
680
681 //echo ":".$_GET["term_id"].":";
682 if ($_GET["term_id"] != "") {
683 $this->tabs_gui->addTab(
684 "properties",
685 $lng->txt("term"),
686 $this->ctrl->getLinkTarget($this, "editTerm")
687 );
688
689 $this->tabs_gui->addTab(
690 "definitions",
691 $lng->txt("cont_definitions"),
692 $this->ctrl->getLinkTarget($this, "listDefinitions")
693 );
694
695 $this->tabs_gui->addTab(
696 "usage",
697 $lng->txt("cont_usage") . " (" . ilGlossaryTerm::getNumberOfUsages($_GET["term_id"]) . ")",
698 $this->ctrl->getLinkTarget($this, "listUsages")
699 );
700
701 $mdgui = new ilObjectMetaDataGUI(
702 $this->term_glossary,
703 "term",
704 $this->term->getId()
705 );
706 $mdtab = $mdgui->getTab();
707 if ($mdtab) {
708 $this->tabs_gui->addTab(
709 "meta_data",
710 $lng->txt("meta_data"),
711 $mdtab
712 );
713 }
714
715 $this->tabs_gui->addNonTabbedLink(
716 "presentation_view",
717 $this->lng->txt("glo_presentation_view"),
718 ILIAS_HTTP_PATH .
719 "/goto.php?target=" .
720 "git" .
721 "_" . $_GET["term_id"] . "_" . $_GET["ref_id"] . "&client_id=" . CLIENT_ID,
722 "_top"
723 );
724 }
725
726 // back to glossary
727 $this->tabs_gui->setBackTarget(
728 $this->lng->txt("glossary"),
729 $this->ctrl->getLinkTargetByClass("ilobjglossarygui", "listTerms")
730 );
731 }
732
738 public static function _goto($a_target, $a_ref_id = "")
739 {
740 global $DIC;
741
742 $rbacsystem = $DIC->rbac()->system();
743 $ilErr = $DIC["ilErr"];
744 $lng = $DIC->language();
745 $ilAccess = $DIC->access();
746
747 $glo_id = ilGlossaryTerm::_lookGlossaryID($a_target);//::_lookupContObjID($a_target);
748
749 // get all references
750 if ($a_ref_id > 0) {
751 $ref_ids = array($a_ref_id);
752 } else {
753 $ref_ids = ilObject::_getAllReferences($glo_id);
754 }
755
756 // check read permissions
757 foreach ($ref_ids as $ref_id) {
758 // Permission check
759 if ($ilAccess->checkAccess("read", "", $ref_id)) {
760 $_GET["baseClass"] = "ilGlossaryPresentationGUI";
761 $_GET["term_id"] = $a_target;
762 $_GET["ref_id"] = $ref_id;
763 $_GET["cmd"] = "listDefinitions";
764 include_once("ilias.php");
765 exit;
766 }
767 }
768 if ($ilAccess->checkAccess("read", "", ROOT_FOLDER_ID)) {
769 ilUtil::sendFailure(sprintf(
770 $lng->txt("msg_no_perm_read_item"),
772 ), true);
774 }
775
776
777 $ilErr->raiseError($lng->txt("msg_no_perm_read_lm"), $ilErr->FATAL);
778 }
779
783 public function listUsages()
784 {
785 $ilTabs = $this->tabs_gui;
787
788 //$this->displayLocator();
789 // $this->getTemplate();
790 $this->displayLocator();
791 $this->setTabs();
792 $ilTabs->activateTab("usage");
793
794 $this->tpl->setTitle($this->lng->txt("cont_term") . ": " . $this->term->getTerm());
795 $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_glo.svg"));
796
797 $tab = new ilTermUsagesTableGUI($this, "listUsages", $_GET["term_id"]);
798
799 $tpl->setContent($tab->getHTML());
800
801 $this->quickList();
802 }
803
807 public function quickList()
808 {
810
811 $tab = new ilTermQuickListTableGUI($this, "editTerm");
812 $tpl->setLeftNavContent($tab->getHTML());
813 }
814}
$_GET["client_id"]
$_POST["username"]
An exception for terminatinating execution or to throw for unit testing.
Glossary definition page GUI class.
Glossary definition page object.
Class ilGlossaryDefinition.
static getDefinitionList($a_term_id)
static
GUI class for glossary terms.
getOfflineDirectory()
get offline directory
__construct($a_id=0)
Constructor @access public.
getOverlayHTML($a_close_el_id, $a_glo_ov_id="", $a_lang="", $a_outputmode="offline")
Get overlay html.
cancel()
cancel adding definition
moveUp()
move definition upwards
editTerm(ilPropertyFormGUI $a_form=null)
Edit term.
quickList()
Set quick term list cmd into left navigation URL.
listDefinitions()
list definitions
getInternalLinks()
get internal links
static _goto($a_target, $a_ref_id="")
redirect script
executeCommand()
execute command
getEditTermForm()
Get edit term form.
moveDown()
move definition downwards
displayLocator()
display locator
confirmDefinitionDeletion()
deletion confirmation screen
saveDefinition()
save definition
setOfflineDirectory($offdir)
set offline directory to offdir
create()
form for new content object creation
output($a_offline=false, $a_tpl="", $a_outputmode="presentation")
output glossary term definitions
static getNumberOfUsages($a_term_id)
Get number of usages.
static _lookGlossaryID($term_id)
get glossary id form term id
static getLogger($a_component_id)
Get component logger.
static getInstance()
Singleton: get instance.
Class ilObjGlossary.
static getSyntaxStylePath()
get syntax style path
static getContentStylePath($a_style_id, $add_random=true, $add_token=true)
get content style path
static _gotoRepositoryRoot($a_raise_error=false)
Goto repository root.
Class ilObjectMetaDataGUI.
static _lookupTitle($a_id)
lookup object title
static _lookupObjectId($a_ref_id)
lookup object id
static _getAllReferences($a_id)
get all reference ids of object
This class represents a property form user interface.
This class represents a selection list property in a property form.
Taxonomy node <-> item assignment.
Select taxonomy nodes input GUI.
special template class to simplify handling of ITX/PEAR
GUI class for glossary term definition editor.
TableGUI class for media object usages listing.
This class represents a text property in a property form.
static sendQuestion($a_info="", $a_keep=false)
Send Question to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
const CLIENT_ID
Definition: constants.php:39
const ROOT_FOLDER_ID
Definition: constants.php:30
global $DIC
Definition: goto.php:24
help()
Definition: help.php:2
exit
Definition: login.php:29
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
$ret
Definition: parser.php:6
$ilErr
Definition: raiseError.php:18
$lang
Definition: xapiexit.php:8