Glossary Locator GUI.
More...
Glossary Locator GUI.
- Author
- Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
- Version
- $Id$
Definition at line 13 of file class.ilGlossaryLocatorGUI.php.
◆ __construct()
ilGlossaryLocatorGUI::__construct |
( |
| ) |
|
◆ display()
ilGlossaryLocatorGUI::display |
( |
| ) |
|
display locator
Definition at line 78 of file class.ilGlossaryLocatorGUI.php.
References $_GET, $ctrl, $ilCtrl, $lng, $locator, $title, and $tpl.
86 $ilLocator->addRepositoryItems();
89 $title = $this->glossary->getTitle();
90 if ($this->mode ==
"edit") {
91 $link =
$ilCtrl->getLinkTargetByClass(
"ilobjglossarygui",
"listTerms");
93 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"term_id",
"");
94 $link =
$ilCtrl->getLinkTargetByClass(
"ilglossarypresentationgui");
95 if (is_object($this->term)) {
96 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"term_id", $this->term->getId());
99 $ilLocator->addItem(
$title, $link,
"");
101 if (is_object($this->term) && $this->mode !=
"edit") {
102 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"term_id", $this->term->getId());
104 $this->term->getTerm(),
105 $ilCtrl->getLinkTargetByClass(
"ilglossarypresentationgui",
"listDefinitions")
107 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"term_id",
$_GET[
"term_id"]);
110 if (is_object($this->definition)) {
111 $title = $this->term->getTerm() .
" (" . $this->lng->txt(
"cont_definition") .
" " . $this->definition->getNr() .
")";
112 if ($this->mode ==
"edit") {
113 $link =
$ilCtrl->getLinkTargetByClass(
"ilglossarydefpagegui",
"edit");
115 $ilCtrl->setParameterByClass(
"ilglossarypresentationgui",
"def",
$_GET[
"def"]);
116 $link =
$ilCtrl->getLinkTargetByClass(
"ilglossarypresentationgui",
"view");
118 $ilLocator->addItem(
$title, $link);
◆ setDefinition()
ilGlossaryLocatorGUI::setDefinition |
( |
& |
$a_def | ) |
|
◆ setGlossary()
ilGlossaryLocatorGUI::setGlossary |
( |
& |
$a_glossary | ) |
|
◆ setMode()
ilGlossaryLocatorGUI::setMode |
( |
|
$a_mode | ) |
|
◆ setTemplateVariable()
ilGlossaryLocatorGUI::setTemplateVariable |
( |
|
$a_temp_var | ) |
|
◆ setTerm()
ilGlossaryLocatorGUI::setTerm |
( |
& |
$a_term | ) |
|
◆ $ctrl
ilGlossaryLocatorGUI::$ctrl |
|
protected |
◆ $lng
ilGlossaryLocatorGUI::$lng |
◆ $locator
ilGlossaryLocatorGUI::$locator |
|
protected |
◆ $mode
ilGlossaryLocatorGUI::$mode |
◆ $obj
ilGlossaryLocatorGUI::$obj |
◆ $temp_var
ilGlossaryLocatorGUI::$temp_var |
◆ $tpl
ilGlossaryLocatorGUI::$tpl |
◆ $tree
ilGlossaryLocatorGUI::$tree |
The documentation for this class was generated from the following file: