ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilGlossaryPresentationGUI Class Reference

Class ilGlossaryPresentationGUI. More...

+ Collaboration diagram for ilGlossaryPresentationGUI:

Public Member Functions

 ilGlossaryPresentationGUI ()
 Constructor public.
 setOfflineMode ($a_offline=true)
 set offline mode (content is generated for offline package)
 offlineMode ()
 checks wether offline content generation is activated
 setOfflineDirectory ($a_dir)
 Set offline directory.
 getOfflineDirectory ()
 Get offline directory.
executeCommand ()
 executer command ("listTerms" | "listDefinitions")
 prepareOutput ()
 listTerms ()
 List all terms.
 listTermByGiven ($term_list, $filter="")
 list glossary terms
 applyFilter ()
 Apply filter.
 resetFilter ()
 Reset filter (note: this function existed before data table filter has been introduced.
 listDefinitions ($a_ref_id=0, $a_term_id=0, $a_get_html=false)
 list definitions of a term
 showDefinitionTabs ($a_act)
 Definitions tabs.
 fullscreen ()
 show fullscreen view
 media ($a_mode="media")
 show media object
 showDownloadList ()
 show download list
 downloadExportFile ()
 send download file (xml/html)
 setLocator ($a_tree="", $a_id="")
 set Locator
 downloadFile ()
 download file of file lists
 setTabs ()
 output tabs
 getLinkXML ($a_int_links)
 get link targets
 getLink ($a_ref_id, $a_cmd="", $a_term_id="", $a_def_id="", $a_frame="", $a_type="")
 handles links for learning module presentation
 printViewSelection ()
 Print view selection.
 initPrintViewSelectionForm ()
 Init print view selection form.
 printView ()
 Print View.
 getTabs (&$tabs_gui)
 get tabs
 download_paragraph ()
 infoScreen ()
 this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed
 outputInfoScreen ()
 info screen call from inside learning module
 chooseLetter ()
 Choose first letter.
 showTaxonomy ()
 Show taxonomy.

Data Fields

 $admin_tabs
 $glossary
 $ilias
 $tpl
 $lng

Detailed Description

Member Function Documentation

ilGlossaryPresentationGUI::applyFilter ( )

Apply filter.

Definition at line 262 of file class.ilGlossaryPresentationGUI.php.

References listTerms(), and offlineMode().

{
global $ilTabs;
include_once("./Modules/Glossary/classes/class.ilPresentationListTableGUI.php");
$prtab = new ilPresentationListTableGUI($this, "listTerms", $this->glossary,
$this->offlineMode(), $this->tax_node);
$prtab->resetOffset();
$prtab->writeFilterToSession();
$this->listTerms();
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::chooseLetter ( )

Choose first letter.

Parameters
@return

Definition at line 1421 of file class.ilGlossaryPresentationGUI.php.

References $ilCtrl.

{
global $ilCtrl;
$ilCtrl->redirect($this, "listTerms");
}
ilGlossaryPresentationGUI::download_paragraph ( )

Definition at line 1323 of file class.ilGlossaryPresentationGUI.php.

References $_GET.

{
include_once("./Services/COPage/classes/class.ilPageObject.php");
$pg_obj =& new ilPageObject("gdf", $_GET["pg_id"]);
$pg_obj->send_paragraph ($_GET["par_id"], $_GET["downloadtitle"]);
}
ilGlossaryPresentationGUI::downloadExportFile ( )

send download file (xml/html)

Definition at line 799 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $file, $ilias, $lng, ilUtil\deliverFile(), and exit.

{
global $ilAccess, $ilias, $lng;
if (!$ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
}
$file = $this->glossary->getPublicExportFile($_GET["type"]);
if ($this->glossary->getPublicExportFile($_GET["type"]) != "")
{
$dir = $this->glossary->getExportDirectory($_GET["type"]);
if (is_file($dir."/".$file))
{
}
}
$this->ilias->raiseError($this->lng->txt("file_not_found"),$this->ilias->error_obj->MESSAGE);
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::downloadFile ( )

download file of file lists

Definition at line 847 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $file, $ilias, $lng, and exit.

{
global $ilAccess, $ilias, $lng;
if (!$ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
}
$file = explode("_", $_GET["file_id"]);
include_once("./Modules/File/classes/class.ilObjFile.php");
$fileObj =& new ilObjFile($file[count($file) - 1], false);
$fileObj->sendFile();
}
& ilGlossaryPresentationGUI::executeCommand ( )

executer command ("listTerms" | "listDefinitions")

Definition at line 117 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $cmd, $ilias, $lng, $ret, ilPaymentObject\_requiresPurchaseToAccess(), listDefinitions(), outputInfoScreen(), prepareOutput(), and setTabs().

{
global $lng, $ilAccess, $ilias;
$lng->loadLanguageModule("content");
$next_class = $this->ctrl->getNextClass($this);
$cmd = $this->ctrl->getCmd("listTerms");
// check write permission
if (!$ilAccess->checkAccess("read", "", $_GET["ref_id"]) &&
!($ilAccess->checkAccess("visible", "", $_GET["ref_id"]) &&
($cmd == "infoScreen" || strtolower($next_class) == "ilinfoscreengui")))
{
$ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
}
if ($cmd != "listDefinitions")
{
$this->prepareOutput();
}
include_once 'Services/Payment/classes/class.ilPaymentObject.php';
if(IS_PAYMENT_ENABLED == true
&& (ilPaymentObject::_requiresPurchaseToAccess($_GET["ref_id"], $type = (isset($_GET['purchasetype']) ? $_GET['purchasetype'] : NULL) )))
{
$this->tpl->getStandardTemplate();
include_once 'Services/Payment/classes/class.ilShopPurchaseGUI.php';
$pp = new ilShopPurchaseGUI((int)$_GET['ref_id']);
$ret = $this->ctrl->forwardCommand($pp);
}
else
{
switch($next_class)
{
case "ilnotegui":
$this->setTabs();
$ret =& $this->listDefinitions();
break;
case "ilinfoscreengui":
$ret =& $this->outputInfoScreen();
break;
default:
$ret =& $this->$cmd();
break;
}
}
$this->tpl->show();
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::fullscreen ( )

show fullscreen view

Definition at line 599 of file class.ilGlossaryPresentationGUI.php.

References media().

{
$html = $this->media("fullscreen");
return $html;
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::getLink (   $a_ref_id,
  $a_cmd = "",
  $a_term_id = "",
  $a_def_id = "",
  $a_frame = "",
  $a_type = "" 
)

handles links for learning module presentation

Definition at line 991 of file class.ilGlossaryPresentationGUI.php.

References offlineMode().

Referenced by listDefinitions(), and media().

{
if ($a_cmd == "")
{
$a_cmd = "layout";
}
//$script = "glossary_presentation.php";
// handle online links
if (!$this->offlineMode())
{
//$link = $script."?ref_id=".$a_ref_id;
switch ($a_cmd)
{
case "fullscreen":
$this->ctrl->setParameter($this, "def_id", $a_def_id);
$link = $this->ctrl->getLinkTarget($this, "fullscreen");
break;
default:
$link.= "&cmd=".$a_cmd;
if ($a_frame != "")
{
$this->ctrl->setParameter($this, "frame", $a_frame);
}
if ($a_obj_id != "")
{
switch ($a_type)
{
case "MediaObject":
$this->ctrl->setParameter($this, "mob_id", $a_obj_id);
break;
default:
$this->ctrl->setParameter($this, "def_id", $a_def_id);
break;
}
}
if ($a_type != "")
{
$this->ctrl->setParameter($this, "obj_type", $a_type);
}
$link = $this->ctrl->getLinkTarget($this, $a_cmd);
// $link = str_replace("&", "&", $link);
break;
}
}
else // handle offline links
{
switch ($a_cmd)
{
case "downloadFile":
break;
case "fullscreen":
$link = "fullscreen.html"; // id is handled by xslt
break;
case "layout":
break;
case "glossary":
$link = "term_".$a_obj_id.".html";
break;
case "media":
$link = "media_".$a_obj_id.".html";
break;
default:
break;
}
}
$this->ctrl->clearParameters($this);
return $link;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::getLinkXML (   $a_int_links)

get link targets

Definition at line 875 of file class.ilGlossaryPresentationGUI.php.

References $target_arr, $target_id, ilFrameTargetInfo\_getFrame(), ilGlossaryTerm\_lookGlossaryID(), ilLMObject\_lookupContObjID(), ilObject\_lookupObjId(), ilObject\_lookupType(), and offlineMode().

Referenced by listDefinitions().

{
if ($a_layoutframes == "")
{
$a_layoutframes = array();
}
$link_info = "<IntLinkInfos>";
foreach ($a_int_links as $int_link)
{
//echo "<br>+".$int_link["Type"]."+".$int_link["TargetFrame"]."+".$int_link["Target"]."+";
$target = $int_link["Target"];
if (substr($target, 0, 4) == "il__")
{
$target_arr = explode("_", $target);
$type = $int_link["Type"];
$targetframe = ($int_link["TargetFrame"] != "")
? $int_link["TargetFrame"]
: "None";
// anchor
$anc = $anc_add = "";
if ($int_link["Anchor"] != "")
{
$anc = $int_link["Anchor"];
$anc_add = "_".rawurlencode($int_link["Anchor"]);
}
if ($targetframe == "New")
{
$ltarget = "_blank";
}
else
{
$ltarget = "";
}
switch($type)
{
case "PageObject":
case "StructureObject":
$cont_obj =& $this->content_object;
if ($type == "PageObject")
{
$href = "./goto.php?target=pg_".$target_id.$anc_add;
}
else
{
$href = "./goto.php?target=st_".$target_id;
}
//$ltarget = "ilContObj".$lm_id;
break;
case "GlossaryItem":
if (ilGlossaryTerm::_lookGlossaryID($target_id) == $this->glossary->getId())
{
if ($this->offlineMode())
{
$href = "term_".$target_id.".html";
}
else
{
$this->ctrl->setParameter($this, "term_id", $target_id);
$href = $this->ctrl->getLinkTarget($this, "listDefinitions");
$href = str_replace("&", "&amp;", $href);
}
}
else
{
$href = "./goto.php?target=git_".$target_id;
}
break;
case "MediaObject":
if ($this->offlineMode())
{
$href = "media_".$target_id.".html";
}
else
{
$this->ctrl->setParameter($this, "obj_type", $type);
$this->ctrl->setParameter($this, "mob_id", $target_id);
$href = $this->ctrl->getLinkTarget($this, "media");
$href = str_replace("&", "&amp;", $href);
}
break;
case "RepositoryItem":
$obj_type = ilObject::_lookupType($target_id, true);
$href = "./goto.php?target=".$obj_type."_".$target_id;
$t_frame = ilFrameTargetInfo::_getFrame("MainContent", $obj_type);
$ltarget = $t_frame;
break;
}
$anc_par = 'Anchor="'.$anc.'"';
$link_info.="<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
"TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" $anc_par/>";
$this->ctrl->clearParameters($this);
}
}
$link_info.= "</IntLinkInfos>";
return $link_info;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::getOfflineDirectory ( )

Get offline directory.

Definition at line 108 of file class.ilGlossaryPresentationGUI.php.

Referenced by listDefinitions().

{
return $this->offline_dir;
}

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::getTabs ( $tabs_gui)

get tabs

Definition at line 1263 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $ilCtrl, $lng, and offlineMode().

Referenced by setTabs().

{
global $ilAccess, $lng, $ilCtrl, $ilHelp;
$ilHelp->setScreenIdComponent("glo");
$oldoffset = (is_numeric ($_GET["oldoffset"]))?$_GET["oldoffset"]:$_GET["offset"];
if (!$this->offlineMode())
{
if ($this->ctrl->getCmd() != "listDefinitions")
{
if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$tabs_gui->addTab("terms",
$lng->txt("cont_terms"),
$ilCtrl->getLinkTarget($this, "listTerms"));
}
$tabs_gui->addTab("info",
$lng->txt("info_short"),
$ilCtrl->getLinkTarget($this, "infoScreen"));
$tabs_gui->addTab("print_view",
$lng->txt("cont_print_view"),
$ilCtrl->getLinkTarget($this, "printViewSelection"));
// glossary menu
if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
//if ($this->glossary->isActiveGlossaryMenu())
//{
// download links
if ($this->glossary->isActiveDownloads())
{
$tabs_gui->addTab("download",
$lng->txt("download"),
$ilCtrl->getLinkTarget($this, "showDownloadList"));
}
//}
}
if ($ilAccess->checkAccess("write", "", (int) $_GET["ref_id"]))
{
$tabs_gui->addNonTabbedLink("editing_view",
$lng->txt("glo_editing_view"),
"ilias.php?baseClass=ilGlossaryEditorGUI&amp;ref_id=".(int) $_GET["ref_id"],
"_top");
}
}
}
else
{
$tabs_gui->addTarget("cont_back",
"index.html#term_".$this->term_id, "",
"");
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::ilGlossaryPresentationGUI ( )

Constructor public.

Definition at line 36 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $ilCtrl, $ilias, $lng, $tpl, and ilGlossaryTerm\_lookGlossaryID().

{
global $lng, $ilias, $tpl, $ilCtrl;
$this->tpl =& $tpl;
$this->lng =& $lng;
$this->ilias =& $ilias;
$this->ctrl =& $ilCtrl;
$this->offline = false;
$this->ctrl->saveParameter($this, array("ref_id", "letter", "tax_node"));
// Todo: check lm id
include_once("./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
$this->glossary_gui =& new ilObjGlossaryGUI("", $_GET["ref_id"], true, "");
$this->glossary =& $this->glossary_gui->object;
// determine term id and check whether it is valid (belongs to
// current glossary or a virtual (online) sub-glossary)
$this->term_id = (int) $_GET["term_id"];
$glo_ids = $this->glossary->getAllGlossaryIds();
if (!is_array($glo_ids))
{
$glo_ids = array($glo_ids);
}
$term_glo_id = ilGlossaryTerm::_lookGlossaryID($this->term_id);
if (!in_array($term_glo_id, $glo_ids))
{
$this->term_id = "";
}
$this->tax_node = 0;
$this->tax_id = $this->glossary->getTaxonomyId();
if ($this->tax_id > 0 && $this->glossary->getShowTaxonomy())
{
include_once("./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
$this->tax = new ilObjTaxonomy($this->tax_id);
}
if ((int) $_GET["tax_node"] > 1 && $this->tax->getTree()->readRootId() != $_GET["tax_node"])
{
$this->tax_node = (int) $_GET["tax_node"];
}
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::infoScreen ( )

this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually, if everything works through ilCtrl in the future this may be changed

Definition at line 1335 of file class.ilGlossaryPresentationGUI.php.

References outputInfoScreen().

{
$this->ctrl->setCmd("showSummary");
$this->ctrl->setCmdClass("ilinfoscreengui");
$this->outputInfoScreen();
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::initPrintViewSelectionForm ( )

Init print view selection form.

Definition at line 1102 of file class.ilGlossaryPresentationGUI.php.

References $ilCtrl, $lng, $si, $t, ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().

Referenced by printViewSelection().

{
global $lng, $ilCtrl;
$terms = $this->glossary->getTermList();
include_once("Services/Form/classes/class.ilPropertyFormGUI.php");
$this->form = new ilPropertyFormGUI();
$this->form->setTarget("print_view");
$this->form->setFormAction($ilCtrl->getFormAction($this));
// selection type
$radg = new ilRadioGroupInputGUI($lng->txt("cont_selection"), "sel_type");
$radg->setValue("glossary");
// current term
if ((int) $this->term_id > 0)
{
$op1 = new ilRadioOption($lng->txt("cont_current_term"), "term");
$radg->addOption($op1);
$radg->setValue("term");
}
// whole glossary
$op2 = new ilRadioOption($lng->txt("cont_whole_glossary")
." (".$lng->txt("cont_terms").": ".count($terms).")", "glossary");
$radg->addOption($op2);
// selected topic
if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy())
{
$op4 = new ilRadioOption($lng->txt("cont_selected_topic"), "sel_topic");
$radg->addOption($op4);
// topic drop down
include_once("./Services/Taxonomy/classes/class.ilTaxAssignInputGUI.php");
$si = new ilTaxAssignInputGUI($t_id, false, $lng->txt("cont_topic"), "topic",
false);
if ($this->tax_node > 0)
{
$si->setValue((int) $this->tax_node);
}
$op4->addSubItem($si);
}
// selected terms
$op3= new ilRadioOption($lng->txt("cont_selected_terms"), "selection");
$radg->addOption($op3);
include_once("./Services/Form/classes/class.ilNestedListInputGUI.php");
$nl = new ilNestedListInputGUI("", "obj_id");
$op3->addSubItem($nl);
//var_dump($terms);
foreach ($terms as $t)
{
$nl->addListNode($t["id"], $t["term"], 0, false, false);
}
$this->form->addItem($radg);
$this->form->addCommandButton("printView", $lng->txt("cont_show_print_view"));
$this->form->setTitle($lng->txt("cont_print_selection"));
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::listDefinitions (   $a_ref_id = 0,
  $a_term_id = 0,
  $a_get_html = false 
)

list definitions of a term

Definition at line 292 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $ilCtrl, $ilias, $ilUser, $lng, $ref_id, $title, $tpl, ilObject\_getAllReferences(), ilUserSearchCache\_getInstance(), ilLMPageObject\_getPresentationTitle(), ilInternalLink\_getSourcesOfTarget(), ilLMObject\_lookupContObjID(), ilObject\_lookupTitle(), ilObjStyleSheet\getContentStylePath(), ilGlossaryDefinition\getDefinitionList(), ilUtil\getImagePath(), getLink(), getLinkXML(), getOfflineDirectory(), ilObjStyleSheet\getSyntaxStylePath(), ilTextHighlighterGUI\highlight(), ilUserSearchCache\LAST_QUERY, offlineMode(), setLocator(), and showDefinitionTabs().

Referenced by executeCommand(), and printView().

{
global $ilUser, $ilAccess, $ilias, $lng, $ilCtrl;
if ($a_ref_id == 0)
{
$ref_id = (int) $_GET["ref_id"];
}
else
{
$ref_id = $a_ref_id;
}
if ($a_term_id == 0)
{
$term_id = $this->term_id;
}
else
{
$term_id = $a_term_id;
}
if (!$ilAccess->checkAccess("read", "", $ref_id))
{
$ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
}
// tabs
if ($this->glossary->getPresentationMode() != "full_def")
{
$this->showDefinitionTabs("content");
}
$term = new ilGlossaryTerm($term_id);
if (!$a_get_html)
{
require_once("./Services/COPage/classes/class.ilPageObjectGUI.php");
$tpl->getStandardTemplate();
// $this->setTabs();
if ($this->offlineMode())
{
$style_name = $ilUser->prefs["style"].".css";;
$tpl->setVariable("LOCATION_STYLESHEET","./".$style_name);
}
else
{
$this->setLocator();
}
// content style
$tpl->setCurrentBlock("ContentStyle");
if (!$this->offlineMode())
{
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
ilObjStyleSheet::getContentStylePath($this->glossary->getStyleSheetId()));
}
else
{
$tpl->setVariable("LOCATION_CONTENT_STYLESHEET","content.css");
}
$tpl->parseCurrentBlock();
// syntax style
$tpl->setCurrentBlock("SyntaxStyle");
if (!$this->offlineMode())
{
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
}
else
{
$tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
"syntaxhighlight.css");
}
$tpl->parseCurrentBlock();
$tpl->setTitleIcon(ilUtil::getImagePath("icon_term_b.png"));
$tpl->setTitle($this->lng->txt("cont_term").": ".$term->getTerm());
// load template for table
$tpl->addBlockfile("ADM_CONTENT", "def_list", "tpl.glossary_definition_list.html", "Modules/Glossary");
}
else
{
// content style
$this->tpl->setCurrentBlock("ContentStyle");
if (!$this->offlineMode())
{
$this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
ilObjStyleSheet::getContentStylePath($this->glossary->getStyleSheetId()));
}
else
{
$this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET","content.css");
}
$this->tpl->parseCurrentBlock();
// syntax style
$this->tpl->setCurrentBlock("SyntaxStyle");
if (!$this->offlineMode())
{
$this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
}
else
{
$this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
"syntaxhighlight.css");
}
$this->tpl->parseCurrentBlock();
$tpl = new ilTemplate("tpl.glossary_definition_list.html", true, true, "Modules/Glossary");
}
$tpl->setVariable("TXT_TERM", $term->getTerm());
$this->mobs = array();
for($j=0; $j<count($defs); $j++)
{
$def = $defs[$j];
$page_gui =& new ilPageObjectGUI("gdf", $def["id"]);
$page_gui->setStyleId($this->glossary->getStyleSheetId());
$page = $page_gui->getPageObject();
// internal links
$page->buildDom();
$int_links = $page->getInternalLinks();
$link_xml = $this->getLinkXML($int_links);
$page_gui->setLinkXML($link_xml);
if ($this->offlineMode())
{
$page_gui->setOutputMode("offline");
$page_gui->setOfflineDirectory($this->getOfflineDirectory());
}
$page_gui->setSourcecodeDownloadScript($this->getLink($ref_id));
$page_gui->setFullscreenLink($this->getLink($ref_id, "fullscreen", $term_id, $def["id"]));
$page_gui->setTemplateOutput(false);
$page_gui->setRawPageContent(true);
$page_gui->setFileDownloadLink($this->getLink($ref_id, "downloadFile"));
if (!$this->offlineMode())
{
$output = $page_gui->preview();
}
else
{
$output = $page_gui->presentation($page_gui->getOutputMode());
}
if (count($defs) > 1)
{
$tpl->setCurrentBlock("definition_header");
$tpl->setVariable("TXT_DEFINITION",
$this->lng->txt("cont_definition")." ".($j+1));
$tpl->parseCurrentBlock();
}
$tpl->setCurrentBlock("definition");
$tpl->setVariable("PAGE_CONTENT", $output);
$tpl->parseCurrentBlock();
}
// display possible backlinks
$sources = ilInternalLink::_getSourcesOfTarget('git',$_GET['term_id'],0);
if ($sources)
{
$backlist_shown = false;
foreach ($sources as $src)
{
$type = explode(':',$src['type']);
if ($type[0] == 'lm')
{
if ($type[1] == 'pg')
{
$lm_id = ilLMObject::_lookupContObjID($src['id']);
$lm_title = ilObject::_lookupTitle($lm_id);
$tpl->setCurrentBlock('backlink_item');
$ref_ids = ilObject::_getAllReferences($lm_id);
$access = false;
foreach($ref_ids as $rid)
{
if ($ilAccess->checkAccess("read", "", $rid))
{
$access = true;
}
}
if ($access)
{
$tpl->setCurrentBlock("backlink_item");
$tpl->setVariable("BACKLINK_LINK",ILIAS_HTTP_PATH."/goto.php?target=".$type[1]."_".$src['id']);
$tpl->setVariable("BACKLINK_ITEM",$lm_title.": ".$title);
$tpl->parseCurrentBlock();
$backlist_shown = true;
}
}
}
}
if ($backlist_shown)
{
$tpl->setCurrentBlock("backlink_list");
$tpl->setVariable("BACKLINK_TITLE",$this->lng->txt('glo_term_used_in'));
$tpl->parseCurrentBlock();
}
}
if (!$a_get_html)
{
$tpl->setCurrentBlock("perma_link");
$tpl->setVariable("PERMA_LINK", ILIAS_HTTP_PATH.
"/goto.php?target=".
"git".
"_".$term_id."_".$ref_id."&client_id=".CLIENT_ID);
$tpl->setVariable("TXT_PERMA_LINK", $this->lng->txt("perma_link"));
$tpl->setVariable("PERMA_TARGET", "_top");
$tpl->parseCurrentBlock();
}
// highlighting?
if ($_GET["srcstring"] != "" && !$this->offlineMode())
{
include_once './Services/Search/classes/class.ilUserSearchCache.php';
$cache = ilUserSearchCache::_getInstance($ilUser->getId());
$cache->switchSearchType(ilUserSearchCache::LAST_QUERY);
$search_string = $cache->getQuery();
include_once("./Services/UIComponent/TextHighlighter/classes/class.ilTextHighlighterGUI.php");
include_once("./Services/Search/classes/class.ilQueryParser.php");
$p = new ilQueryParser($search_string);
$p->parse();
$words = $p->getQuotedWords();
if (is_array($words))
{
foreach ($words as $w)
{
ilTextHighlighterGUI::highlight("ilGloContent", $w, $tpl);
}
}
$this->fill_on_load_code = true;
}
if ($this->offlineMode() || $a_get_html)
{
return $tpl->get();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::listTermByGiven (   $term_list,
  $filter = "" 
)

list glossary terms

Definition at line 226 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $ilCtrl, $ilias, $lng, $tpl, offlineMode(), and setTabs().

Referenced by listTerms().

{
global $ilCtrl, $ilAccess, $ilias, $lng, $tpl;
if (!$ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
}
$this->lng->loadLanguageModule("meta");
$this->setTabs();
// load template for table
// $this->tpl->addBlockfile("ADM_CONTENT", "adm_content", "tpl.table.html");
$oldoffset = (is_numeric ($_GET["oldoffset"]))?$_GET["oldoffset"]:$_GET["offset"];
include_once("./Modules/Glossary/classes/class.ilPresentationListTableGUI.php");
$table = new ilPresentationListTableGUI($this, "listTerms", $this->glossary,
$this->offlineMode(), $this->tax_node);
if (!$this->offlineMode())
{
$tpl->setContent($table->getHTML());
}
else
{
$this->tpl->setVariable("ADM_CONTENT", $table->getHTML());
return $this->tpl->get();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::listTerms ( )

List all terms.

Definition at line 185 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $ilCtrl, $ilias, $lng, $ret, listTermByGiven(), offlineMode(), ilAlphabetInputGUI\setLetters(), and showTaxonomy().

Referenced by applyFilter(), and resetFilter().

{
global $ilNavigationHistory, $ilAccess, $ilias, $lng, $ilToolbar, $ilCtrl, $ilTabs;
if (!$ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
}
if (!$this->offlineMode())
{
$ilNavigationHistory->addItem($_GET["ref_id"],
$this->ctrl->getLinkTarget($this, "listTerms"), "glo");
// alphabetical navigation
include_once("./Services/Form/classes/class.ilAlphabetInputGUI.php");
$ai = new ilAlphabetInputGUI($lng->txt("glo_quick_navigation"), "first");
$ai->setLetters($this->glossary->getFirstLetters($this->tax_node));
$ai->setParentCommand($this, "chooseLetter");
$ai->setHighlighted($_GET["letter"]);
$ilToolbar->addInputItem($ai, true);
}
// $term_list = $this->glossary->getTermList();
$ret = $this->listTermByGiven($term_list);
$ilCtrl->setParameter($this, "term_id", "");
$ilTabs->activateTab("terms");
// show taxonomy
$this->showTaxonomy();
return $ret;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::media (   $a_mode = "media")

show media object

Definition at line 608 of file class.ilGlossaryPresentationGUI.php.

References $_GET, ilMediaItem\_getMapAreasIntLinks(), ilObjStyleSheet\getContentStylePath(), ilUtil\getImagePath(), getLink(), ilUtil\getStyleSheetLocation(), ilUtil\getWebspaceDir(), IL_MODE_ALIAS, IL_MODE_OUTPUT, offlineMode(), xslt_create(), xslt_error(), xslt_free(), and xslt_process().

Referenced by fullscreen().

{
$this->tpl =& new ilTemplate("tpl.fullscreen.html", true, true, "Services/COPage");
include_once("./Services/Style/classes/class.ilObjStyleSheet.php");
$this->tpl->setVariable("LOCATION_STYLESHEET", ilUtil::getStyleSheetLocation());
$this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
ilObjStyleSheet::getContentStylePath($this->glossary->getStyleSheetId()));
//$int_links = $page_object->getInternalLinks();
$med_links = ilMediaItem::_getMapAreasIntLinks($_GET["mob_id"]);
// later
//$link_xml = $this->getLinkXML($med_links, $this->getLayoutLinkTargets());
$link_xlm = "";
require_once("./Services/MediaObjects/classes/class.ilObjMediaObject.php");
$media_obj =& new ilObjMediaObject($_GET["mob_id"]);
$xml = "<dummy>";
// todo: we get always the first alias now (problem if mob is used multiple
// times in page)
$xml.= $media_obj->getXML(IL_MODE_ALIAS);
$xml.= $media_obj->getXML(IL_MODE_OUTPUT);
$xml.= $link_xml;
$xml.="</dummy>";
$xsl = file_get_contents("./Services/COPage/xsl/page.xsl");
$args = array( '/_xml' => $xml, '/_xsl' => $xsl );
$xh = xslt_create();
if (!$this->offlineMode())
{
$enlarge_path = ilUtil::getImagePath("enlarge.png", false, "output");
$wb_path = ilUtil::getWebspaceDir("output")."/";
}
else
{
$enlarge_path = "images/enlarge.png";
$wb_path = "";
}
$mode = $a_mode;
$this->ctrl->setParameter($this, "obj_type", "MediaObject");
$fullscreen_link =
$this->getLink($_GET["ref_id"], "fullscreen");
$this->ctrl->clearParameters($this);
$params = array ('mode' => $mode, 'enlarge_path' => $enlarge_path,
'link_params' => "ref_id=".$_GET["ref_id"],'fullscreen_link' => $fullscreen_link,
'ref_id' => $_GET["ref_id"], 'pg_frame' => $pg_frame, 'webspace_path' => $wb_path);
$output = xslt_process($xh,"arg:/_xml","arg:/_xsl",NULL,$args, $params);
echo xslt_error($xh);
xslt_free($xh);
// unmask user html
$this->tpl->setVariable("MEDIA_CONTENT", $output);
$this->tpl->parseCurrentBlock();
if ($this->offlineMode())
{
$html = $this->tpl->get();
return $html;
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::offlineMode ( )

checks wether offline content generation is activated

Definition at line 91 of file class.ilGlossaryPresentationGUI.php.

Referenced by applyFilter(), getLink(), getLinkXML(), getTabs(), listDefinitions(), listTermByGiven(), listTerms(), media(), outputInfoScreen(), resetFilter(), showDefinitionTabs(), and showTaxonomy().

{
return $this->offline;
}

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::outputInfoScreen ( )

info screen call from inside learning module

info screen

Definition at line 1354 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $ilBench, ilObjGlossaryGUI\addUsagesToInfo(), offlineMode(), and setTabs().

Referenced by executeCommand(), and infoScreen().

{
global $ilBench, $ilAccess, $ilTabs;
$this->setTabs();
$ilTabs->activateTab("info");
$this->lng->loadLanguageModule("meta");
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this->glossary_gui);
$info->enablePrivateNotes();
//$info->enableLearningProgress();
$info->enableNews();
if ($ilAccess->checkAccess("write", "", $_GET["ref_id"]))
{
$info->enableNewsEditing();
$news_set = new ilSetting("news");
$enable_internal_rss = $news_set->get("enable_rss_for_internal");
if ($enable_internal_rss)
{
$info->setBlockProperty("news", "settings", true);
}
}
// add read / back button
if ($ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
/*
if ($_GET["obj_id"] > 0)
{
$this->ctrl->setParameter($this, "obj_id", $_GET["obj_id"]);
$info->addButton($this->lng->txt("back"),
$this->ctrl->getLinkTarget($this, "layout"));
}
else
{
$info->addButton($this->lng->txt("view"),
$this->ctrl->getLinkTarget($this, "layout"));
}*/
}
// show standard meta data section
$info->addMetaDataSections($this->glossary->getId(),0, $this->glossary->getType());
include_once("./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
ilObjGlossaryGUI::addUsagesToInfo($info, $this->glossary->getId());
if ($this->offlineMode())
{
$this->tpl->setContent($info->getHTML());
return $this->tpl->get();
}
else
{
// forward the command
$this->ctrl->forwardCommand($info);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::prepareOutput ( )

Definition at line 170 of file class.ilGlossaryPresentationGUI.php.

References $title, ilUtil\getImagePath(), and setLocator().

Referenced by executeCommand().

{
$this->tpl->getStandardTemplate();
$title = $this->glossary->getTitle();
$this->tpl->setTitle($title);
$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_glo_b.png"));
$this->setLocator();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::printView ( )

Print View.

Parameters
@return

Definition at line 1174 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $_POST, $t, $tpl, exit, ilObjStyleSheet\getContentPrintStyle(), ilObjTaxonomy\getSubTreeItems(), iljQueryUtil\initjQuery(), and listDefinitions().

{
global $ilAccess, $tpl;
if (!$ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
return;
}
$terms = array();
switch ($_POST["sel_type"])
{
case "glossary":
$ts = $this->glossary->getTermList();
foreach ($ts as $t)
{
$terms[] = $t["id"];
}
break;
case "sel_topic":
include_once("./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
$t_id = $this->glossary->getTaxonomyId();
$items = ilObjTaxonomy::getSubTreeItems($t_id, (int) $_POST["topic"]);
foreach ($items as $i)
{
if ($i["item_type"] == "term")
{
$terms[] = $i["item_id"];
}
}
break;
case "selection":
if (is_array($_POST["obj_id"]))
{
$terms = $_POST["obj_id"];
}
else
{
$terms = array();
}
break;
case "term":
$terms = array($this->term_id);
break;
}
$tpl = new ilTemplate("tpl.main.html", true, true);
$tpl->setVariable("LOCATION_STYLESHEET", ilObjStyleSheet::getContentPrintStyle());
/*
// syntax style
$this->tpl->setCurrentBlock("SyntaxStyle");
$this->tpl->setVariable("LOCATION_SYNTAX_STYLESHEET",
ilObjStyleSheet::getSyntaxStylePath());
$this->tpl->parseCurrentBlock();
// content style
$this->tpl->setCurrentBlock("ContentStyle");
$this->tpl->setVariable("LOCATION_CONTENT_STYLESHEET",
ilObjStyleSheet::getContentStylePath($this->glossary->getStyleSheetId()));
$this->tpl->parseCurrentBlock();*/
include_once("./Services/jQuery/classes/class.iljQueryUtil.php");
// determine target frames for internal links
foreach ($terms as $t_id)
{
$page_content.= $this->listDefinitions($_GET["ref_id"], $t_id, true);
}
$tpl->setVariable("CONTENT", $page_content.
'<script type="text/javascript" language="javascript1.2">
<!--
il.Util.addOnLoad(function () {
il.Util.print();
});
//-->
</script>');
$tpl->show(false);
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::printViewSelection ( )

Print view selection.

Parameters
@return

Definition at line 1075 of file class.ilGlossaryPresentationGUI.php.

References $ilCtrl, $ilUser, $lng, $tpl, ilUtil\getImagePath(), initPrintViewSelectionForm(), setTabs(), and showDefinitionTabs().

{
global $ilUser, $lng, $ilToolbar, $ilCtrl, $tpl, $ilTabs;
$ilCtrl->saveParameter($this, "term_id");
if ((int) $this->term_id == 0)
{
$this->setTabs();
$ilTabs->activateTab("print_view");
}
else
{
$tpl->setTitleIcon(ilUtil::getImagePath("icon_term_b.png"));
$term = new ilGlossaryTerm((int) $this->term_id);
$tpl->setTitle($this->lng->txt("cont_term").": ".$term->getTerm());
$this->showDefinitionTabs("print_view");
}
$tpl->setContent($this->form->getHTML());
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::resetFilter ( )

Reset filter (note: this function existed before data table filter has been introduced.

Definition at line 279 of file class.ilGlossaryPresentationGUI.php.

References listTerms(), and offlineMode().

{
include_once("./Modules/Glossary/classes/class.ilPresentationListTableGUI.php");
$prtab = new ilPresentationListTableGUI($this, "listTerms", $this->glossary,
$this->offlineMode(), $this->tax_node);
$prtab->resetOffset();
$prtab->resetFilter();
$this->listTerms();
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::setLocator (   $a_tree = "",
  $a_id = "" 
)

set Locator

Parameters
objecttree object
integerreference id public

Definition at line 828 of file class.ilGlossaryPresentationGUI.php.

Referenced by listDefinitions(), and prepareOutput().

{
//$this->tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html", "Services/Locator");
require_once ("./Modules/Glossary/classes/class.ilGlossaryLocatorGUI.php");
$gloss_loc =& new ilGlossaryLocatorGUI();
$gloss_loc->setMode("presentation");
if (!empty($this->term_id))
{
$term =& new ilGlossaryTerm($this->term_id);
$gloss_loc->setTerm($term);
}
$gloss_loc->setGlossary($this->glossary);
//$gloss_loc->setDefinition($this->definition);
$gloss_loc->display();
}

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::setOfflineDirectory (   $a_dir)

Set offline directory.

Definition at line 99 of file class.ilGlossaryPresentationGUI.php.

{
$this->offline_dir = $a_dir;
}
ilGlossaryPresentationGUI::setOfflineMode (   $a_offline = true)

set offline mode (content is generated for offline package)

Definition at line 83 of file class.ilGlossaryPresentationGUI.php.

{
$this->offline = $a_offline;
}
ilGlossaryPresentationGUI::setTabs ( )

output tabs

Definition at line 866 of file class.ilGlossaryPresentationGUI.php.

References getTabs().

Referenced by executeCommand(), listTermByGiven(), outputInfoScreen(), printViewSelection(), and showDownloadList().

{
global $ilTabs;
$this->getTabs($ilTabs);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::showDefinitionTabs (   $a_act)

Definitions tabs.

Parameters
@return

Definition at line 554 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $_REQUEST, $ilCtrl, $lng, and offlineMode().

Referenced by listDefinitions(), and printViewSelection().

{
global $ilTabs, $lng, $ilCtrl;
if (!$this->offlineMode())
{
$ilCtrl->setParameter($this, "term_id", "");
$this->ctrl->setParameter($this, "offset", $_GET["offset"]);
if (!empty ($_REQUEST["term"]))
{
$this->ctrl->setParameter($this, "term", $_REQUEST["term"]);
$this->ctrl->setParameter($this, "oldoffset", $_GET["oldoffset"]);
$back = $ilCtrl->getLinkTarget($this, "searchTerms");
}
else
{
$back = $ilCtrl->getLinkTarget($this, "listTerms");
}
$ilCtrl->setParameter($this, "term_id", $this->term_id);
$ilCtrl->saveParameter($this, "term_id");
$ilTabs->setBackTarget($this->lng->txt("obj_glo"), $back);
$ilTabs->addTab("content",
$lng->txt("content"),
$ilCtrl->getLinkTarget($this, "listDefinitions"));
$ilTabs->addTab("print_view",
$lng->txt("print_view"),
$ilCtrl->getLinkTarget($this, "printViewSelection"));
$ilCtrl->setParameterByClass("ilglossarytermgui", "term_id", $this->term_id);
$ilTabs->addNonTabbedLink("editing_view",
$lng->txt("glo_editing_view"),
$ilCtrl->getLinkTargetByClass(array("ilglossaryeditorgui", "ilobjglossarygui", "ilglossarytermgui"), "listDefinitions"));
//"ilias.php?baseClass=ilGlossaryEditorGUI&amp;ref_id=".$_GET["ref_id"]."&amp;edit_term=".$this->term_id);
$ilTabs->activateTab($a_act);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilGlossaryPresentationGUI::showDownloadList ( )

show download list

Definition at line 679 of file class.ilGlossaryPresentationGUI.php.

References $_GET, $ilBench, $ilias, $lng, $size, ilUtil\getImagePath(), setTabs(), and ilUtil\switchColor().

{
global $ilBench, $ilAccess, $ilias, $lng, $ilTabs;
if (!$ilAccess->checkAccess("read", "", $_GET["ref_id"]))
{
$ilias->raiseError($lng->txt("permission_denied"),$ilias->error_obj->MESSAGE);
}
$this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.glo_download_list.html", "Modules/Glossary");
$this->setTabs();
$ilTabs->activateTab("download");
// set title header
$this->tpl->setTitle($this->glossary->getTitle());
//$this->tpl->setVariable("IMG_HEADER", ilUtil::getImagePath("icon_glo_b.png"));
$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_glo_b.png"));
// create table
require_once("./Services/Table/classes/class.ilTableGUI.php");
$tbl = new ilTableGUI();
// load files templates
$this->tpl->addBlockfile("DOWNLOAD_TABLE", "download_table", "tpl.table.html");
// load template for table content data
$this->tpl->addBlockfile("TBL_CONTENT", "tbl_content", "tpl.download_file_row.html", "Modules/Glossary");
$export_files = array();
$types = array("xml", "html");
foreach($types as $type)
{
if ($this->glossary->getPublicExportFile($type) != "")
{
$dir = $this->glossary->getExportDirectory($type);
if (is_file($this->glossary->getExportDirectory($type)."/".
$this->glossary->getPublicExportFile($type)))
{
$size = filesize($this->glossary->getExportDirectory($type)."/".
$this->glossary->getPublicExportFile($type));
$export_files[] = array("type" => $type,
"file" => $this->glossary->getPublicExportFile($type),
"size" => $size);
}
}
}
$num = 0;
$tbl->setTitle($this->lng->txt("download"));
$tbl->setHeaderNames(array($this->lng->txt("cont_format"),
$this->lng->txt("cont_file"),
$this->lng->txt("size"), $this->lng->txt("date"),
""));
$cols = array("format", "file", "size", "date", "download");
$header_params = array("ref_id" => $_GET["ref_id"], "obj_id" => $_GET["obj_id"],
"cmd" => "showDownloadList", "cmdClass" => strtolower(get_class($this)));
$tbl->setHeaderVars($cols, $header_params);
$tbl->setColumnWidth(array("10%", "30%", "20%", "20%","20%"));
$tbl->disable("sort");
// control
$tbl->setOrderColumn($_GET["sort_by"]);
$tbl->setOrderDirection($_GET["sort_order"]);
$tbl->setLimit($_GET["limit"]);
$tbl->setOffset($_GET["offset"]);
$tbl->setMaxCount($this->maxcount); // ???
$this->tpl->setVariable("COLUMN_COUNTS", 5);
// footer
//$tbl->setFooter("tblfooter",$this->lng->txt("previous"),$this->lng->txt("next"));
$tbl->disable("footer");
$tbl->setMaxCount(count($export_files));
$export_files = array_slice($export_files, $_GET["offset"], $_GET["limit"]);
$tbl->render();
if(count($export_files) > 0)
{
$i=0;
foreach($export_files as $exp_file)
{
$this->tpl->setCurrentBlock("tbl_content");
$this->tpl->setVariable("TXT_FILENAME", $exp_file["file"]);
$css_row = ilUtil::switchColor($i++, "tblrow1", "tblrow2");
$this->tpl->setVariable("CSS_ROW", $css_row);
$this->tpl->setVariable("TXT_SIZE", $exp_file["size"]);
$this->tpl->setVariable("TXT_FORMAT", strtoupper($exp_file["type"]));
$this->tpl->setVariable("CHECKBOX_ID", $exp_file["type"].":".$exp_file["file"]);
$file_arr = explode("__", $exp_file["file"]);
$this->tpl->setVariable("TXT_DATE", date("Y-m-d H:i:s",$file_arr[0]));
$this->tpl->setVariable("TXT_DOWNLOAD", $this->lng->txt("download"));
$this->ctrl->setParameter($this, "type", $exp_file["type"]);
$this->tpl->setVariable("LINK_DOWNLOAD",
$this->ctrl->getLinkTarget($this, "downloadExportFile"));
$this->tpl->parseCurrentBlock();
}
} //if is_array
else
{
$this->tpl->setVariable("TXT_OBJECT_NOT_FOUND", $this->lng->txt("obj_not_found"));
$this->tpl->setVariable("NUM_COLS", 5);
$this->tpl->parseCurrentBlock();
}
//$this->tpl->show();
}

+ Here is the call graph for this function:

ilGlossaryPresentationGUI::showTaxonomy ( )

Show taxonomy.

Parameters
@return

Definition at line 1434 of file class.ilGlossaryPresentationGUI.php.

References $lng, $tpl, ilObjTaxonomyGUI\getTreeHTML(), ilObjTaxonomy\getUsageOfObject(), and offlineMode().

Referenced by listTerms().

{
global $tpl, $lng;
if (!$this->offlineMode() && $this->glossary->getShowTaxonomy())
{
include_once("./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
$tax_ids = ilObjTaxonomy::getUsageOfObject($this->glossary->getId());
if (count($tax_ids) > 0)
{
include_once("./Services/Taxonomy/classes/class.ilObjTaxonomyGUI.php");
$tpl->setLeftNavContent(ilObjTaxonomyGUI::getTreeHTML($tax_ids[0],
"ilglossarypresentationgui", "listTerms", $lng->txt("cont_all_topics")));
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilGlossaryPresentationGUI::$admin_tabs

Definition at line 26 of file class.ilGlossaryPresentationGUI.php.

ilGlossaryPresentationGUI::$glossary

Definition at line 27 of file class.ilGlossaryPresentationGUI.php.


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