ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilGlossaryDefPageGUI.php
Go to the documentation of this file.
1<?php
2
27{
28 protected ?ilObjGlossary $glossary = null;
29
30 public function __construct(
31 int $a_id = 0,
32 int $a_old_nr = 0
33 ) {
34 parent::__construct("term", $a_id, $a_old_nr);
35 }
36
37 public function setGlossary(ilObjGlossary $a_val): void
38 {
39 $this->glossary = $a_val;
40 }
41
42 public function getGlossary(): ilObjGlossary
43 {
44 return $this->glossary;
45 }
46
47 //TODO: Is this still needed after abandoning LOM for Definitons?
48 public function postOutputProcessing(string $a_output): string
49 {
50 if ($this->getOutputMode() == "print" && !is_null($this->glossary)) {
51 $term_id = $this->getId();
52 $mdgui = new ilObjectMetaDataGUI($this->glossary, "term", $term_id);
53 $md = $mdgui->getKeyValueList();
54 if ($md != "") {
55 $a_output = str_replace("<!--COPage-PageTop-->", "<p>" . $md . "</p>", $a_output);
56 }
57 }
58
59 return $a_output;
60 }
61
62 public function finishEditing(): void
63 {
64 $this->ctrl->redirectByClass("ilObjGlossaryGUI", "listTerms");
65 }
66}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
postOutputProcessing(string $a_output)
Finalizing output processing.
setGlossary(ilObjGlossary $a_val)
__construct(int $a_id=0, int $a_old_nr=0)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilObjectMetaDataGUI.
Class ilPageObjectGUI.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc