ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
class.ilGlossaryDefPageGUI.php
Go to the documentation of this file.
1
<?
php
2
3
/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
include_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php"
);
6
include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefPage.php"
);
7
19
class
ilGlossaryDefPageGUI
extends
ilPageObjectGUI
20
{
24
protected
$glossary
;
25
29
public
function
__construct
($a_id = 0, $a_old_nr = 0)
30
{
31
global
$DIC
;
32
33
$this->tpl = $DIC[
"tpl"
];
34
$tpl
= $DIC[
"tpl"
];
35
36
parent::__construct(
"gdf"
, $a_id, $a_old_nr);
37
}
38
44
public
function
setGlossary
($a_val)
45
{
46
$this->glossary = $a_val;
47
}
48
54
public
function
getGlossary
()
55
{
56
return
$this->glossary
;
57
}
58
62
public
function
postOutputProcessing
($a_output)
63
{
64
if
($this->
getOutputMode
() ==
"print"
&& $this->glossary instanceof
ilObjGlossary
) {
65
include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php"
);
66
$term_id =
ilGlossaryDefinition::_lookupTermId
($this->
getId
());
67
include_once(
"./Services/Object/classes/class.ilObjectMetaDataGUI.php"
);
68
$mdgui =
new
ilObjectMetaDataGUI
($this->glossary,
"term"
, $term_id);
69
$md = $mdgui->getKeyValueList();
70
if
($md !=
""
) {
71
$a_output = str_replace(
"<!--COPage-PageTop-->"
,
"<p>"
. $md .
"</p>"
, $a_output);
72
}
73
}
74
75
return
$a_output;
76
}
77
}
ilGlossaryDefPageGUI\$glossary
$glossary
Definition:
class.ilGlossaryDefPageGUI.php:24
ilObjectMetaDataGUI
Class ilObjectMetaDataGUI.
Definition:
class.ilObjectMetaDataGUI.php:12
ilGlossaryDefPageGUI\setGlossary
setGlossary($a_val)
Set glossary.
Definition:
class.ilGlossaryDefPageGUI.php:44
$DIC
global $DIC
Definition:
saml.php:7
ilObjGlossary
Class ilObjGlossary.
Definition:
class.ilObjGlossary.php:20
ilPageObjectGUI\$tpl
$tpl
Definition:
class.ilPageObjectGUI.php:35
ilPageObjectGUI
Class ilPageObjectGUI.
Definition:
class.ilPageObjectGUI.php:30
ilGlossaryDefPageGUI\postOutputProcessing
postOutputProcessing($a_output)
Output metadata.
Definition:
class.ilGlossaryDefPageGUI.php:62
ilGlossaryDefinition\_lookupTermId
static _lookupTermId($a_def_id)
Looks up term id for a definition id.
Definition:
class.ilGlossaryDefinition.php:627
ilPageObjectGUI\getId
getId()
Get ID.
Definition:
class.ilPageObjectGUI.php:249
ilGlossaryDefPageGUI\__construct
__construct($a_id=0, $a_old_nr=0)
Constructor.
Definition:
class.ilGlossaryDefPageGUI.php:29
ilPageObjectGUI\getOutputMode
getOutputMode()
Definition:
class.ilPageObjectGUI.php:368
ilGlossaryDefPageGUI\getGlossary
getGlossary()
Get glossary.
Definition:
class.ilGlossaryDefPageGUI.php:54
ilGlossaryDefPageGUI
Glossary definition page GUI class.
Definition:
class.ilGlossaryDefPageGUI.php:19
php
Modules
Glossary
classes
class.ilGlossaryDefPageGUI.php
Generated on Thu Jan 16 2025 19:02:04 for ILIAS by
1.8.13 (using
Doxyfile
)