ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilGlossaryLocatorGUI Class Reference

Glossary Locator GUI. More...

+ Collaboration diagram for ilGlossaryLocatorGUI:

Public Member Functions

 ilGlossaryLocatorGUI ()
 setTemplateVariable ($a_temp_var)
 setTerm (&$a_term)
 setGlossary (&$a_glossary)
 setDefinition (&$a_def)
 setMode ($a_mode)
 display ()
 display locator

Data Fields

 $mode
 $temp_var
 $tree
 $obj
 $lng
 $tpl

Detailed Description

Glossary Locator GUI.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id:
class.ilGlossaryLocatorGUI.php 43736 2013-07-29 19:46:50Z akill

Definition at line 13 of file class.ilGlossaryLocatorGUI.php.

Member Function Documentation

ilGlossaryLocatorGUI::display ( )

display locator

Definition at line 62 of file class.ilGlossaryLocatorGUI.php.

References $_GET, $ilCtrl, $lng, and $tpl.

{
global $lng, $ilCtrl, $ilLocator, $tpl;
// repository links
$ilLocator->addRepositoryItems();
// glossary link
$title = $this->glossary->getTitle();
if ($this->mode == "edit")
{
$link = $ilCtrl->getLinkTargetByClass("ilobjglossarygui", "listTerms");
}
else
{
$ilCtrl->setParameterByClass("ilglossarypresentationgui", "term_id", "");
$link = $ilCtrl->getLinkTargetByClass("ilglossarypresentationgui");
if (is_object($this->term))
{
$ilCtrl->setParameterByClass("ilglossarypresentationgui", "term_id", $this->term->getId());
}
}
$ilLocator->addItem($title, $link, "");
if (is_object($this->term) && $this->mode != "edit")
{
$ilCtrl->setParameterByClass("ilglossarypresentationgui", "term_id", $this->term->getId());
$ilLocator->addItem($this->term->getTerm(),
$ilCtrl->getLinkTargetByClass("ilglossarypresentationgui", "listDefinitions"));
$ilCtrl->setParameterByClass("ilglossarypresentationgui", "term_id", $_GET["term_id"]);
}
if (is_object($this->definition))
{
$title = $this->term->getTerm()." (".$this->lng->txt("cont_definition")." ".$this->definition->getNr().")";
if ($this->mode == "edit")
{
$link = $ilCtrl->getLinkTargetByClass("ilglossarydefpagegui", "edit");
}
else
{
$ilCtrl->setParameterByClass("ilglossarypresentationgui", "def", $_GET["def"]);
$link = $ilCtrl->getLinkTargetByClass("ilglossarypresentationgui", "view");
}
$ilLocator->addItem($title, $link);
}
$tpl->setLocator();
}
ilGlossaryLocatorGUI::ilGlossaryLocatorGUI ( )

Definition at line 23 of file class.ilGlossaryLocatorGUI.php.

References $lng, $tpl, and $tree.

{
global $lng, $tpl, $tree;
$this->mode = "edit";
$this->temp_var = "LOCATOR";
$this->lng =& $lng;
$this->tpl =& $tpl;
$this->tree =& $tree;
}
ilGlossaryLocatorGUI::setDefinition ( $a_def)

Definition at line 49 of file class.ilGlossaryLocatorGUI.php.

{
$this->definition =& $a_def;
}
ilGlossaryLocatorGUI::setGlossary ( $a_glossary)

Definition at line 44 of file class.ilGlossaryLocatorGUI.php.

{
$this->glossary =& $a_glossary;
}
ilGlossaryLocatorGUI::setMode (   $a_mode)

Definition at line 54 of file class.ilGlossaryLocatorGUI.php.

{
$this->mode = $a_mode;
}
ilGlossaryLocatorGUI::setTemplateVariable (   $a_temp_var)

Definition at line 34 of file class.ilGlossaryLocatorGUI.php.

{
$this->temp_var = $a_temp_var;
}
ilGlossaryLocatorGUI::setTerm ( $a_term)

Definition at line 39 of file class.ilGlossaryLocatorGUI.php.

{
$this->term =& $a_term;
}

Field Documentation

ilGlossaryLocatorGUI::$lng

Definition at line 19 of file class.ilGlossaryLocatorGUI.php.

Referenced by display(), and ilGlossaryLocatorGUI().

ilGlossaryLocatorGUI::$mode

Definition at line 15 of file class.ilGlossaryLocatorGUI.php.

ilGlossaryLocatorGUI::$obj

Definition at line 18 of file class.ilGlossaryLocatorGUI.php.

ilGlossaryLocatorGUI::$temp_var

Definition at line 16 of file class.ilGlossaryLocatorGUI.php.

ilGlossaryLocatorGUI::$tpl

Definition at line 20 of file class.ilGlossaryLocatorGUI.php.

Referenced by display(), and ilGlossaryLocatorGUI().

ilGlossaryLocatorGUI::$tree

Definition at line 17 of file class.ilGlossaryLocatorGUI.php.

Referenced by ilGlossaryLocatorGUI().


The documentation for this class was generated from the following file: