5require_once(
"./Services/Object/classes/class.ilObjectGUI.php");
6require_once(
"./Modules/Glossary/classes/class.ilObjGlossary.php");
7require_once(
"./Modules/Glossary/classes/class.ilGlossaryTermGUI.php");
8require_once(
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
9require_once(
"./Modules/Glossary/classes/class.ilTermDefinitionEditorGUI.php");
10require_once(
"./Services/COPage/classes/class.ilPCParagraph.php");
44 $this->offline =
false;
45 $this->ctrl->saveParameter($this, array(
"ref_id",
"letter",
"tax_node"));
48 include_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
50 $this->glossary =& $this->glossary_gui->object;
54 $this->term_id = (int)
$_GET[
"term_id"];
55 $glo_ids = $this->glossary->getAllGlossaryIds();
56 if (!is_array($glo_ids))
58 $glo_ids = array($glo_ids);
61 if (!in_array($term_glo_id, $glo_ids))
67 $this->tax_id = $this->glossary->getTaxonomyId();
68 if ($this->tax_id > 0 && $this->glossary->getShowTaxonomy())
70 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
73 if ((
int)
$_GET[
"tax_node"] > 1 && $this->tax->getTree()->readRootId() !=
$_GET[
"tax_node"])
75 $this->tax_node = (int)
$_GET[
"tax_node"];
85 $this->offline = $a_offline;
93 return $this->offline;
101 $this->offline_dir = $a_dir;
110 return $this->offline_dir;
121 $lng->loadLanguageModule(
"content");
123 $next_class = $this->ctrl->getNextClass($this);
124 $cmd = $this->ctrl->getCmd(
"listTerms");
127 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]) &&
128 !($ilAccess->checkAccess(
"visible",
"",
$_GET[
"ref_id"]) &&
129 (
$cmd ==
"infoScreen" || strtolower($next_class) ==
"ilinfoscreengui")))
131 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
134 if (
$cmd !=
"listDefinitions")
139 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
140 if(IS_PAYMENT_ENABLED ==
true
143 $this->tpl->getStandardTemplate();
145 include_once
'Services/Payment/classes/class.ilShopPurchaseGUI.php';
147 $ret = $this->ctrl->forwardCommand($pp);
158 case "ilinfoscreengui":
162 case "ilpresentationlisttablegui":
164 $this->ctrl->forwardCommand($prtab);
178 $this->tpl->getStandardTemplate();
179 $title = $this->glossary->getTitle();
181 $this->tpl->setTitle($title);
193 global $ilNavigationHistory, $ilAccess,
$ilias,
$lng, $ilToolbar,
$ilCtrl, $ilTabs;
196 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
198 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
203 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
204 $this->ctrl->getLinkTarget($this,
"listTerms"),
"glo");
207 include_once(
"./Services/Form/classes/class.ilAlphabetInputGUI.php");
209 $ai->setLetters($this->glossary->getFirstLetters($this->tax_node));
210 $ai->setParentCommand($this,
"chooseLetter");
211 $ai->setHighlighted(
$_GET[
"letter"]);
212 $ilToolbar->addInputItem($ai,
true);
219 $ilCtrl->setParameter($this,
"term_id",
"");
221 $ilTabs->activateTab(
"terms");
236 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
238 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
241 $this->lng->loadLanguageModule(
"meta");
248 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
250 if ($this->glossary->getPresentationMode() ==
"full_def")
253 $this->tpl->setCurrentBlock(
"ContentStyle");
256 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
261 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
"content.css");
263 $this->tpl->parseCurrentBlock();
266 $this->tpl->setCurrentBlock(
"SyntaxStyle");
269 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
274 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
275 "syntaxhighlight.css");
277 $this->tpl->parseCurrentBlock();
285 $tpl->setContent(
$ilCtrl->getHTML($table));
289 $this->tpl->setVariable(
"ADM_CONTENT", $table->getHTML());
290 return $this->tpl->get();
302 include_once(
"./Modules/Glossary/classes/class.ilPresentationListTableGUI.php");
304 $this->
offlineMode(), $this->tax_node, $this->glossary->getTaxonomyId());
316 $prtab->resetOffset();
317 $prtab->writeFilterToSession();
329 $prtab->resetOffset();
330 $prtab->resetFilter();
351 $term_id = $this->term_id;
355 $term_id = $a_term_id;
358 if (!$ilAccess->checkAccess(
"read",
"",
$ref_id))
360 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
364 if ($this->glossary->getPresentationMode() !=
"full_def")
375 require_once(
"./Modules/Glossary/classes/class.ilGlossaryDefPageGUI.php");
376 $tpl->getStandardTemplate();
381 $style_name =
$ilUser->prefs[
"style"].
".css";;
382 $tpl->setVariable(
"LOCATION_STYLESHEET",
"./".$style_name);
390 $tpl->setCurrentBlock(
"ContentStyle");
393 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
398 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
"content.css");
400 $tpl->parseCurrentBlock();
403 $tpl->setCurrentBlock(
"SyntaxStyle");
406 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
411 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
412 "syntaxhighlight.css");
414 $tpl->parseCurrentBlock();
417 $tpl->setTitle($this->lng->txt(
"cont_term").
": ".$term->getTerm());
420 $tpl->addBlockfile(
"ADM_CONTENT",
"def_list",
"tpl.glossary_definition_list.html",
"Modules/Glossary");
424 $tpl =
new ilTemplate(
"tpl.glossary_definition_list.html",
true,
true,
"Modules/Glossary");
429 $tpl->setVariable(
"TXT_TERM", $term->getTerm());
430 $this->mobs = array();
432 for($j=0; $j<count($defs); $j++)
436 $page_gui->setStyleId($this->glossary->getStyleSheetId());
437 $page = $page_gui->getPageObject();
441 $int_links = $page->getInternalLinks();
443 $page_gui->setLinkXML($link_xml);
447 $page_gui->setOutputMode(
"offline");
451 $page_gui->setFullscreenLink($this->
getLink(
$ref_id,
"fullscreen", $term_id, $def[
"id"]));
453 $page_gui->setTemplateOutput(
false);
454 $page_gui->setRawPageContent(
true);
455 $page_gui->setFileDownloadLink($this->
getLink(
$ref_id,
"downloadFile"));
458 $output = $page_gui->preview();
462 $output = $page_gui->presentation($page_gui->getOutputMode());
465 if (count($defs) > 1)
467 $tpl->setCurrentBlock(
"definition_header");
468 $tpl->setVariable(
"TXT_DEFINITION",
469 $this->lng->txt(
"cont_definition").
" ".($j+1));
470 $tpl->parseCurrentBlock();
473 $tpl->setCurrentBlock(
"definition");
474 $tpl->setVariable(
"PAGE_CONTENT", $output);
475 $tpl->parseCurrentBlock();
483 $backlist_shown =
false;
484 foreach ($sources as $src)
486 $type = explode(
':',$src[
'type']);
488 if ($type[0] ==
'lm')
490 if ($type[1] ==
'pg')
495 $tpl->setCurrentBlock(
'backlink_item');
498 foreach($ref_ids as $rid)
500 if ($ilAccess->checkAccess(
"read",
"", $rid))
507 $tpl->setCurrentBlock(
"backlink_item");
508 $tpl->setVariable(
"BACKLINK_LINK",ILIAS_HTTP_PATH.
"/goto.php?target=".$type[1].
"_".$src[
'id']);
509 $tpl->setVariable(
"BACKLINK_ITEM",$lm_title.
": ".$title);
510 $tpl->parseCurrentBlock();
511 $backlist_shown =
true;
518 $tpl->setCurrentBlock(
"backlink_list");
519 $tpl->setVariable(
"BACKLINK_TITLE",$this->lng->txt(
'glo_term_used_in'));
520 $tpl->parseCurrentBlock();
526 $tpl->setCurrentBlock(
"perma_link");
527 $tpl->setVariable(
"PERMA_LINK", ILIAS_HTTP_PATH.
530 "_".$term_id.
"_".
$ref_id.
"&client_id=".CLIENT_ID);
531 $tpl->setVariable(
"TXT_PERMA_LINK", $this->lng->txt(
"perma_link"));
532 $tpl->setVariable(
"PERMA_TARGET",
"_top");
533 $tpl->parseCurrentBlock();
539 include_once
'./Services/Search/classes/class.ilUserSearchCache.php';
542 $search_string = $cache->getQuery();
544 include_once(
"./Services/UIComponent/TextHighlighter/classes/class.ilTextHighlighterGUI.php");
545 include_once(
"./Services/Search/classes/class.ilQueryParser.php");
549 $words = $p->getQuotedWords();
550 if (is_array($words))
552 foreach ($words as $w)
557 $this->fill_on_load_code =
true;
578 $ilHelp->setScreenIdComponent(
"glo");
580 $ilCtrl->setParameter($this,
"term_id",
"");
581 $this->ctrl->setParameter($this,
"offset",
$_GET[
"offset"]);
584 $this->ctrl->setParameter($this,
"term",
$_REQUEST[
"term"]);
585 $this->ctrl->setParameter($this,
"oldoffset",
$_GET[
"oldoffset"]);
586 $back =
$ilCtrl->getLinkTarget($this,
"searchTerms");
590 $back =
$ilCtrl->getLinkTarget($this,
"listTerms");
592 $ilCtrl->setParameter($this,
"term_id", $this->term_id);
593 $ilCtrl->saveParameter($this,
"term_id");
595 $ilTabs->setBackTarget($this->lng->txt(
"obj_glo"), $back);
597 $ilTabs->addTab(
"term_content",
598 $lng->txt(
"content"),
599 $ilCtrl->getLinkTarget($this,
"listDefinitions"));
601 $ilTabs->addTab(
"print_view",
602 $lng->txt(
"print_view"),
603 $ilCtrl->getLinkTarget($this,
"printViewSelection"));
605 $ilCtrl->setParameterByClass(
"ilglossarytermgui",
"term_id", $this->term_id);
606 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
609 $ilTabs->addNonTabbedLink(
"editing_view",
610 $lng->txt(
"glo_editing_view"),
611 $ilCtrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
"ilobjglossarygui",
"ilglossarytermgui"),
"listDefinitions"));
614 $ilTabs->activateTab($a_act);
624 $html = $this->
media(
"fullscreen");
633 $this->tpl =&
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
634 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
636 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
647 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
658 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
659 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
669 $enlarge_path =
"images/enlarge.svg";
675 $this->ctrl->setParameter($this,
"obj_type",
"MediaObject");
678 $this->ctrl->clearParameters($this);
680 $params = array (
'mode' => $mode,
'enlarge_path' => $enlarge_path,
681 'link_params' =>
"ref_id=".
$_GET[
"ref_id"],
'fullscreen_link' => $fullscreen_link,
682 'ref_id' =>
$_GET[
"ref_id"],
'pg_frame' => $pg_frame,
'webspace_path' => $wb_path);
683 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args, $params);
688 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
690 $this->tpl->parseCurrentBlock();
693 $html = $this->tpl->get();
706 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
708 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
711 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.glo_download_list.html",
"Modules/Glossary");
714 $ilTabs->activateTab(
"download");
717 $this->tpl->setTitle($this->glossary->getTitle());
721 require_once(
"./Services/Table/classes/class.ilTableGUI.php");
725 $this->tpl->addBlockfile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
728 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
730 $export_files = array();
731 $types = array(
"xml",
"html");
732 foreach($types as $type)
734 if ($this->glossary->getPublicExportFile($type) !=
"")
736 $dir = $this->glossary->getExportDirectory($type);
737 if (is_file($this->glossary->getExportDirectory($type).
"/".
738 $this->glossary->getPublicExportFile($type)))
740 $size = filesize($this->glossary->getExportDirectory($type).
"/".
741 $this->glossary->getPublicExportFile($type));
742 $export_files[] = array(
"type" => $type,
743 "file" => $this->glossary->getPublicExportFile($type),
751 $tbl->setTitle($this->lng->txt(
"download"));
753 $tbl->setHeaderNames(array($this->lng->txt(
"cont_format"),
754 $this->lng->txt(
"cont_file"),
755 $this->lng->txt(
"size"), $this->lng->txt(
"date"),
758 $cols = array(
"format",
"file",
"size",
"date",
"download");
759 $header_params = array(
"ref_id" =>
$_GET[
"ref_id"],
"obj_id" =>
$_GET[
"obj_id"],
760 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
761 $tbl->setHeaderVars($cols, $header_params);
762 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
763 $tbl->disable(
"sort");
766 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
767 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
768 $tbl->setLimit(
$_GET[
"limit"]);
769 $tbl->setOffset(
$_GET[
"offset"]);
770 $tbl->setMaxCount($this->maxcount);
776 $tbl->disable(
"footer");
778 $tbl->setMaxCount(count($export_files));
779 $export_files = array_slice($export_files,
$_GET[
"offset"],
$_GET[
"limit"]);
782 if(count($export_files) > 0)
785 foreach($export_files as $exp_file)
787 $this->tpl->setCurrentBlock(
"tbl_content");
788 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
791 $this->tpl->setVariable(
"CSS_ROW", $css_row);
793 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
794 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
795 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"].
":".$exp_file[
"file"]);
797 $file_arr = explode(
"__", $exp_file[
"file"]);
798 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s",$file_arr[0]));
800 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->lng->txt(
"download"));
801 $this->ctrl->setParameter($this,
"type", $exp_file[
"type"]);
802 $this->tpl->setVariable(
"LINK_DOWNLOAD",
803 $this->ctrl->getLinkTarget($this,
"downloadExportFile"));
805 $this->tpl->parseCurrentBlock();
810 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
811 $this->tpl->setVariable(
"NUM_COLS", 5);
812 $this->tpl->parseCurrentBlock();
825 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
827 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
830 $file = $this->glossary->getPublicExportFile(
$_GET[
"type"]);
831 if ($this->glossary->getPublicExportFile(
$_GET[
"type"]) !=
"")
833 $dir = $this->glossary->getExportDirectory(
$_GET[
"type"]);
834 if (is_file($dir.
"/".
$file))
840 $this->
ilias->raiseError($this->lng->txt(
"file_not_found"),$this->ilias->error_obj->MESSAGE);
853 require_once (
"./Modules/Glossary/classes/class.ilGlossaryLocatorGUI.php");
855 $gloss_loc->setMode(
"presentation");
856 if (!empty($this->term_id))
859 $gloss_loc->setTerm($term);
861 $gloss_loc->setGlossary($this->glossary);
863 $gloss_loc->display();
873 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
875 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
879 include_once(
"./Modules/File/classes/class.ilObjFile.php");
881 $fileObj->sendFile();
900 if ($a_layoutframes ==
"")
902 $a_layoutframes = array();
904 $link_info =
"<IntLinkInfos>";
905 foreach ($a_int_links as $int_link)
908 $target = $int_link[
"Target"];
909 if (substr($target, 0, 4) ==
"il__")
913 $type = $int_link[
"Type"];
914 $targetframe = ($int_link[
"TargetFrame"] !=
"")
915 ? $int_link[
"TargetFrame"]
919 $anc = $anc_add =
"";
920 if ($int_link[
"Anchor"] !=
"")
922 $anc = $int_link[
"Anchor"];
923 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
926 if ($targetframe ==
"New")
938 case "StructureObject":
940 $cont_obj =& $this->content_object;
941 if ($type ==
"PageObject")
943 $href =
"./goto.php?target=pg_".$target_id.$anc_add;
947 $href =
"./goto.php?target=st_".$target_id;
957 $href =
"term_".$target_id.
".html";
961 $this->ctrl->setParameter($this,
"term_id",
$target_id);
962 $href = $this->ctrl->getLinkTarget($this,
"listDefinitions");
963 $href = str_replace(
"&",
"&", $href);
968 $href =
"./goto.php?target=git_".$target_id;
975 $href =
"media_".$target_id.
".html";
979 $this->ctrl->setParameter($this,
"obj_type", $type);
980 $this->ctrl->setParameter($this,
"mob_id",
$target_id);
981 $href = $this->ctrl->getLinkTarget($this,
"media");
982 $href = str_replace(
"&",
"&", $href);
986 case "RepositoryItem":
989 $href =
"./goto.php?target=".$obj_type.
"_".
$target_id;
995 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
1000 $anc_par =
'Anchor="'.$anc.
'"';
1002 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
1003 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" $anc_par/>";
1005 $this->ctrl->clearParameters($this);
1008 $link_info.=
"</IntLinkInfos>";
1017 function getLink($a_ref_id, $a_cmd =
"", $a_term_id =
"", $a_def_id =
"",
1018 $a_frame =
"", $a_type =
"")
1033 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1034 $link = $this->ctrl->getLinkTarget($this,
"fullscreen");
1038 $link.=
"&cmd=".$a_cmd;
1041 $this->ctrl->setParameter($this,
"frame", $a_frame);
1043 if ($a_obj_id !=
"")
1048 $this->ctrl->setParameter($this,
"mob_id", $a_obj_id);
1052 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1058 $this->ctrl->setParameter($this,
"obj_type", $a_type);
1060 $link = $this->ctrl->getLinkTarget($this, $a_cmd);
1069 case "downloadFile":
1073 $link =
"fullscreen.html";
1080 $link =
"term_".$a_obj_id.
".html";
1084 $link =
"media_".$a_obj_id.
".html";
1091 $this->ctrl->clearParameters($this);
1105 $ilCtrl->saveParameter($this,
"term_id");
1107 if ((
int) $this->term_id == 0)
1110 $ilTabs->activateTab(
"print_view");
1116 $tpl->setTitle($this->lng->txt(
"cont_term").
": ".$term->getTerm());
1122 $tpl->setContent($this->form->getHTML());
1132 $terms = $this->glossary->getTermList();
1134 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1136 $this->form->setTarget(
"print_view");
1137 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
1141 $radg->setValue(
"glossary");
1144 if ((
int) $this->term_id > 0)
1147 $radg->addOption($op1);
1148 $radg->setValue(
"term");
1153 .
" (".
$lng->txt(
"cont_terms").
": ".count($terms).
")",
"glossary");
1154 $radg->addOption($op2);
1157 if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy())
1160 $radg->addOption($op4);
1163 include_once(
"./Services/Taxonomy/classes/class.ilTaxAssignInputGUI.php");
1166 if ($this->tax_node > 0)
1168 $si->setValue((
int) $this->tax_node);
1170 $op4->addSubItem(
$si);
1176 $radg->addOption($op3);
1178 include_once(
"./Services/Form/classes/class.ilNestedListInputGUI.php");
1180 $op3->addSubItem($nl);
1182 foreach ($terms as
$t)
1184 $nl->addListNode(
$t[
"id"],
$t[
"term"], 0,
false,
false);
1187 $this->form->addItem($radg);
1189 $this->form->addCommandButton(
"printView",
$lng->txt(
"cont_show_print_view"));
1190 $this->form->setPreventDoubleSubmission(
false);
1192 $this->form->setTitle(
$lng->txt(
"cont_print_selection"));
1203 global $ilAccess,
$tpl;
1205 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1211 switch (
$_POST[
"sel_type"])
1214 $ts = $this->glossary->getTermList();
1217 $terms[] =
$t[
"id"];
1222 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1223 $t_id = $this->glossary->getTaxonomyId();
1225 foreach ($items as $i)
1227 if ($i[
"item_type"] ==
"term")
1229 $terms[] = $i[
"item_id"];
1235 if (is_array(
$_POST[
"obj_id"]))
1237 $terms =
$_POST[
"obj_id"];
1246 $terms = array($this->term_id);
1266 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
1271 foreach ($terms as $t_id)
1275 $tpl->setVariable(
"CONTENT", $page_content.
1276 '<script type="text/javascript" language="javascript1.2">
1278 il.Util.addOnLoad(function () {
1294 $ilHelp->setScreenIdComponent(
"glo");
1296 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
1300 if ($this->ctrl->getCmd() !=
"listDefinitions")
1302 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1304 $tabs_gui->addTab(
"terms",
1305 $lng->txt(
"cont_terms"),
1306 $ilCtrl->getLinkTarget($this,
"listTerms"));
1309 $tabs_gui->addTab(
"info",
1310 $lng->txt(
"info_short"),
1311 $ilCtrl->getLinkTarget($this,
"infoScreen"));
1313 $tabs_gui->addTab(
"print_view",
1314 $lng->txt(
"cont_print_view"),
1315 $ilCtrl->getLinkTarget($this,
"printViewSelection"));
1318 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1323 if ($this->glossary->isActiveDownloads())
1325 $tabs_gui->addTab(
"download",
1326 $lng->txt(
"download"),
1327 $ilCtrl->getLinkTarget($this,
"showDownloadList"));
1332 if ($ilAccess->checkAccess(
"write",
"", (
int)
$_GET[
"ref_id"]) ||
1333 $ilAccess->checkAccess(
"edit_content",
"", (
int)
$_GET[
"ref_id"]))
1335 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
1336 $tabs_gui->addNonTabbedLink(
"editing_view",
1337 $lng->txt(
"glo_editing_view"),
1338 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".(int)
$_GET[
"ref_id"],
1346 $tabs_gui->addTarget(
"cont_back",
1347 "index.html#term_".$this->term_id,
"",
1353 include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefPage.php");
1355 $pg_obj->send_paragraph (
$_GET[
"par_id"],
$_GET[
"downloadtitle"]);
1366 $this->ctrl->setCmd(
"showSummary");
1367 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1385 global
$ilBench, $ilAccess, $ilTabs;
1388 $ilTabs->activateTab(
"info");
1389 $this->lng->loadLanguageModule(
"meta");
1391 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1394 $info->enablePrivateNotes();
1397 $info->enableNews();
1398 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
1400 $info->enableNewsEditing();
1402 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1403 if ($enable_internal_rss)
1405 $info->setBlockProperty(
"news",
"settings",
true);
1410 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1427 $info->addMetaDataSections($this->glossary->getId(),0, $this->glossary->getType());
1429 include_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
1434 $this->tpl->setContent($info->getHTML());
1435 return $this->tpl->get();
1440 $this->ctrl->forwardCommand($info);
1454 $ilCtrl->redirect($this,
"listTerms");
1466 if (!$this->
offlineMode() && $this->glossary->getShowTaxonomy())
1468 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1470 if (count($tax_ids) > 0)
1472 include_once(
"./Services/Taxonomy/classes/class.ilTaxonomyExplorerGUI.php");
1474 "ilglossarypresentationgui",
"listTerms");
1475 if (!$tax_exp->handleCommand())
1478 $tpl->setLeftContent($tax_exp->getHTML().
" ");
1483 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomyGUI.php");
1485 "ilglossarypresentationgui",
"listTerms",
$lng->txt(
"cont_all_topics")));
Glossary definition page GUI class.
Glossary definition page object.
getDefinitionList($a_term_id)
static
Class ilGlossaryPresentationGUI.
downloadFile()
download file of file lists
outputInfoScreen()
info screen call from inside learning module
printViewSelection()
Print view selection.
getPresentationTable()
Get presentation table.
getOfflineDirectory()
Get offline directory.
showDownloadList()
show download list
initPrintViewSelectionForm()
Init print view selection form.
ilGlossaryPresentationGUI()
Constructor @access public.
media($a_mode="media")
show media object
chooseLetter()
Choose first letter.
setOfflineDirectory($a_dir)
Set offline directory.
infoScreen()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually,...
setOfflineMode($a_offline=true)
set offline mode (content is generated for offline package)
resetFilter()
Reset filter (note: this function existed before data table filter has been introduced.
getLinkXML($a_int_links)
get link targets
setLocator($a_tree="", $a_id="")
set Locator
fullscreen()
show fullscreen view
listDefinitions($a_ref_id=0, $a_term_id=0, $a_get_html=false)
list definitions of a term
applyFilter()
Apply filter.
listTermByGiven($term_list, $filter="")
list glossary terms
showTaxonomy()
Show taxonomy.
listTerms()
List all terms.
getTabs(&$tabs_gui)
get tabs
executeCommand()
execute command
downloadExportFile()
send download file (xml/html)
offlineMode()
checks wether offline content generation is activated
showDefinitionTabs($a_act)
Definitions tabs.
getLink($a_ref_id, $a_cmd="", $a_term_id="", $a_def_id="", $a_frame="", $a_type="")
handles links for learning module presentation
static _lookGlossaryID($term_id)
get glossary id form term id
_getSourcesOfTarget($a_target_type, $a_target_id, $a_target_inst)
get all sources of a link target
_lookupContObjID($a_id)
get learning module / digibook id for lm object
static _getPresentationTitle($a_pg_id, $a_mode=IL_CHAPTER_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-")
presentation title doesn't have to be page title, it may be chapter title + page title or chapter tit...
addUsagesToInfo($info, $glo_id)
Add usages to info.
getContentStylePath($a_style_id)
get content style path
getContentPrintStyle()
get content print style
getSyntaxStylePath()
get syntax style path
static getTreeHTML($a_tax_id, $a_class, $a_cmd, $a_target_class, $a_target_cmd, $a_root_node_title="")
Get tree html.
static getUsageOfObject($a_obj_id, $a_include_titles=false)
Get usage of object.
static getSubTreeItems($a_comp, $a_obj_id, $a_item_type, $a_tax_id, $a_node)
Get all assigned items under a node.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title
static _getAllReferences($a_id)
get all reference ids of object
static _lookupType($a_id, $a_reference=false)
lookup object type
static _requiresPurchaseToAccess($a_ref_id, $a_purchasetype='')
this function should be used by all buyable repository objects !!
Term list table for presentation mode.
This class represents an option in a radio group.
Taxonomy explorer GUI class.
special template class to simplify handling of ITX/PEAR
static highlight($a_dom_node_id, $a_text, $a_tpl=null)
Searches for all occurences of a text (case-insensitive) and highlights it.
static _getInstance($a_usr_id)
Get singleton instance.
static getWebspaceDir($mode="filesystem")
get webspace directory
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
static switchColor($a_num, $a_css1, $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
static getGotoForWikiPageTarget($a_target, $a_offline=false)
Get goto href for internal wiki page link target.
static initjQuery($a_tpl=null)
Init jQuery.
redirection script todo: (a better solution should control the processing via a xml file)
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']