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());
421 if($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
423 $cmd = array(
"edit" => $this->ctrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
"ilobjglossarygui",
"ilglossarytermgui",
"ilobjectmetadatagui"),
""));
425 include_once
"Services/Object/classes/class.ilObjectMetaDataGUI.php";
427 $tpl->setRightContent($mdgui->getBlockHTML(
$cmd));
430 $tpl->addBlockfile(
"ADM_CONTENT",
"def_list",
"tpl.glossary_definition_list.html",
"Modules/Glossary");
434 $tpl =
new ilTemplate(
"tpl.glossary_definition_list.html",
true,
true,
"Modules/Glossary");
439 $tpl->setVariable(
"TXT_TERM", $term->getTerm());
440 $this->mobs = array();
442 for($j=0; $j<count($defs); $j++)
446 $page_gui->setStyleId($this->glossary->getStyleSheetId());
447 $page = $page_gui->getPageObject();
451 $int_links = $page->getInternalLinks();
453 $page_gui->setLinkXML($link_xml);
457 $page_gui->setOutputMode(
"offline");
461 $page_gui->setFullscreenLink($this->
getLink(
$ref_id,
"fullscreen", $term_id, $def[
"id"]));
463 $page_gui->setTemplateOutput(
false);
464 $page_gui->setRawPageContent(
true);
465 $page_gui->setFileDownloadLink($this->
getLink(
$ref_id,
"downloadFile"));
468 $output = $page_gui->preview();
472 $output = $page_gui->presentation($page_gui->getOutputMode());
475 if (count($defs) > 1)
477 $tpl->setCurrentBlock(
"definition_header");
478 $tpl->setVariable(
"TXT_DEFINITION",
479 $this->lng->txt(
"cont_definition").
" ".($j+1));
480 $tpl->parseCurrentBlock();
483 $tpl->setCurrentBlock(
"definition");
484 $tpl->setVariable(
"PAGE_CONTENT", $output);
485 $tpl->parseCurrentBlock();
493 $backlist_shown =
false;
494 foreach ($sources as $src)
496 $type = explode(
':',$src[
'type']);
498 if ($type[0] ==
'lm')
500 if ($type[1] ==
'pg')
505 $tpl->setCurrentBlock(
'backlink_item');
508 foreach($ref_ids as $rid)
510 if ($ilAccess->checkAccess(
"read",
"", $rid))
517 $tpl->setCurrentBlock(
"backlink_item");
518 $tpl->setVariable(
"BACKLINK_LINK",ILIAS_HTTP_PATH.
"/goto.php?target=".$type[1].
"_".$src[
'id']);
519 $tpl->setVariable(
"BACKLINK_ITEM",$lm_title.
": ".$title);
520 $tpl->parseCurrentBlock();
521 $backlist_shown =
true;
528 $tpl->setCurrentBlock(
"backlink_list");
529 $tpl->setVariable(
"BACKLINK_TITLE",$this->lng->txt(
'glo_term_used_in'));
530 $tpl->parseCurrentBlock();
536 $tpl->setCurrentBlock(
"perma_link");
537 $tpl->setVariable(
"PERMA_LINK", ILIAS_HTTP_PATH.
540 "_".$term_id.
"_".
$ref_id.
"&client_id=".CLIENT_ID);
541 $tpl->setVariable(
"TXT_PERMA_LINK", $this->lng->txt(
"perma_link"));
542 $tpl->setVariable(
"PERMA_TARGET",
"_top");
543 $tpl->parseCurrentBlock();
549 include_once
'./Services/Search/classes/class.ilUserSearchCache.php';
552 $search_string = $cache->getQuery();
554 include_once(
"./Services/UIComponent/TextHighlighter/classes/class.ilTextHighlighterGUI.php");
555 include_once(
"./Services/Search/classes/class.ilQueryParser.php");
559 $words = $p->getQuotedWords();
560 if (is_array($words))
562 foreach ($words as
$w)
567 $this->fill_on_load_code =
true;
588 $ilHelp->setScreenIdComponent(
"glo");
590 $ilCtrl->setParameter($this,
"term_id",
"");
591 $this->ctrl->setParameter($this,
"offset",
$_GET[
"offset"]);
594 $this->ctrl->setParameter($this,
"term",
$_REQUEST[
"term"]);
595 $this->ctrl->setParameter($this,
"oldoffset",
$_GET[
"oldoffset"]);
596 $back =
$ilCtrl->getLinkTarget($this,
"searchTerms");
600 $back =
$ilCtrl->getLinkTarget($this,
"listTerms");
602 $ilCtrl->setParameter($this,
"term_id", $this->term_id);
603 $ilCtrl->saveParameter($this,
"term_id");
605 $ilTabs->setBackTarget($this->lng->txt(
"obj_glo"), $back);
607 $ilTabs->addTab(
"term_content",
608 $lng->txt(
"content"),
609 $ilCtrl->getLinkTarget($this,
"listDefinitions"));
611 $ilTabs->addTab(
"print_view",
612 $lng->txt(
"print_view"),
613 $ilCtrl->getLinkTarget($this,
"printViewSelection"));
615 $ilCtrl->setParameterByClass(
"ilglossarytermgui",
"term_id", $this->term_id);
616 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
619 $ilTabs->addNonTabbedLink(
"editing_view",
620 $lng->txt(
"glo_editing_view"),
621 $ilCtrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
"ilobjglossarygui",
"ilglossarytermgui"),
"listDefinitions"));
624 $ilTabs->activateTab($a_act);
643 $this->tpl =&
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
644 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
646 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
657 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
668 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
669 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
679 $enlarge_path =
"images/enlarge.svg";
685 $this->ctrl->setParameter($this,
"obj_type",
"MediaObject");
688 $this->ctrl->clearParameters($this);
690 $params = array (
'mode' => $mode,
'enlarge_path' => $enlarge_path,
691 'link_params' =>
"ref_id=".
$_GET[
"ref_id"],
'fullscreen_link' => $fullscreen_link,
692 'ref_id' =>
$_GET[
"ref_id"],
'pg_frame' => $pg_frame,
'webspace_path' => $wb_path);
693 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args,
$params);
698 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
700 $this->tpl->parseCurrentBlock();
703 $html = $this->tpl->get();
716 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
718 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
721 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.glo_download_list.html",
"Modules/Glossary");
724 $ilTabs->activateTab(
"download");
727 $this->tpl->setTitle($this->glossary->getTitle());
731 require_once(
"./Services/Table/classes/class.ilTableGUI.php");
735 $this->tpl->addBlockfile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
738 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
740 $export_files = array();
741 $types = array(
"xml",
"html");
742 foreach($types as $type)
744 if ($this->glossary->getPublicExportFile($type) !=
"")
746 $dir = $this->glossary->getExportDirectory($type);
747 if (is_file($this->glossary->getExportDirectory($type).
"/".
748 $this->glossary->getPublicExportFile($type)))
750 $size = filesize($this->glossary->getExportDirectory($type).
"/".
751 $this->glossary->getPublicExportFile($type));
752 $export_files[] = array(
"type" => $type,
753 "file" => $this->glossary->getPublicExportFile($type),
761 $tbl->setTitle($this->lng->txt(
"download"));
763 $tbl->setHeaderNames(array($this->lng->txt(
"cont_format"),
764 $this->lng->txt(
"cont_file"),
765 $this->lng->txt(
"size"), $this->lng->txt(
"date"),
768 $cols = array(
"format",
"file",
"size",
"date",
"download");
769 $header_params = array(
"ref_id" =>
$_GET[
"ref_id"],
"obj_id" =>
$_GET[
"obj_id"],
770 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
771 $tbl->setHeaderVars($cols, $header_params);
772 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
773 $tbl->disable(
"sort");
777 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
780 $tbl->setMaxCount($this->maxcount);
786 $tbl->disable(
"footer");
788 $tbl->setMaxCount(count($export_files));
789 $export_files = array_slice($export_files,
$_GET[
"offset"],
$_GET[
"limit"]);
792 if(count($export_files) > 0)
795 foreach($export_files as $exp_file)
797 $this->tpl->setCurrentBlock(
"tbl_content");
798 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
801 $this->tpl->setVariable(
"CSS_ROW", $css_row);
803 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
804 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
805 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"].
":".$exp_file[
"file"]);
807 $file_arr = explode(
"__", $exp_file[
"file"]);
808 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s",$file_arr[0]));
810 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->lng->txt(
"download"));
811 $this->ctrl->setParameter($this,
"type", $exp_file[
"type"]);
812 $this->tpl->setVariable(
"LINK_DOWNLOAD",
813 $this->ctrl->getLinkTarget($this,
"downloadExportFile"));
815 $this->tpl->parseCurrentBlock();
820 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
821 $this->tpl->setVariable(
"NUM_COLS", 5);
822 $this->tpl->parseCurrentBlock();
835 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
837 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
840 $file = $this->glossary->getPublicExportFile(
$_GET[
"type"]);
841 if ($this->glossary->getPublicExportFile(
$_GET[
"type"]) !=
"")
843 $dir = $this->glossary->getExportDirectory(
$_GET[
"type"]);
844 if (is_file($dir.
"/".
$file))
850 $this->
ilias->raiseError($this->lng->txt(
"file_not_found"),$this->ilias->error_obj->MESSAGE);
863 require_once (
"./Modules/Glossary/classes/class.ilGlossaryLocatorGUI.php");
865 $gloss_loc->setMode(
"presentation");
866 if (!empty($this->term_id))
869 $gloss_loc->setTerm($term);
871 $gloss_loc->setGlossary($this->glossary);
873 $gloss_loc->display();
883 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
885 $ilias->raiseError(
$lng->txt(
"permission_denied"),
$ilias->error_obj->MESSAGE);
889 include_once(
"./Modules/File/classes/class.ilObjFile.php");
891 $fileObj->sendFile();
910 if ($a_layoutframes ==
"")
912 $a_layoutframes = array();
914 $link_info =
"<IntLinkInfos>";
915 foreach ($a_int_links as $int_link)
918 $target = $int_link[
"Target"];
919 if (substr($target, 0, 4) ==
"il__")
923 $type = $int_link[
"Type"];
924 $targetframe = ($int_link[
"TargetFrame"] !=
"")
925 ? $int_link[
"TargetFrame"]
929 $anc = $anc_add =
"";
930 if ($int_link[
"Anchor"] !=
"")
932 $anc = $int_link[
"Anchor"];
933 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
936 if ($targetframe ==
"New")
948 case "StructureObject":
950 $cont_obj =& $this->content_object;
951 if ($type ==
"PageObject")
953 $href =
"./goto.php?target=pg_".$target_id.$anc_add;
957 $href =
"./goto.php?target=st_".$target_id;
967 $href =
"term_".$target_id.
".html";
971 $this->ctrl->setParameter($this,
"term_id",
$target_id);
972 $href = $this->ctrl->getLinkTarget($this,
"listDefinitions");
973 $href = str_replace(
"&",
"&", $href);
978 $href =
"./goto.php?target=git_".$target_id;
985 $href =
"media_".$target_id.
".html";
989 $this->ctrl->setParameter($this,
"obj_type", $type);
990 $this->ctrl->setParameter($this,
"mob_id",
$target_id);
991 $href = $this->ctrl->getLinkTarget($this,
"media");
992 $href = str_replace(
"&",
"&", $href);
996 case "RepositoryItem":
999 $href =
"./goto.php?target=".$obj_type.
"_".
$target_id;
1001 $ltarget = $t_frame;
1005 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
1010 $anc_par =
'Anchor="'.$anc.
'"';
1012 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
1013 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" $anc_par/>";
1015 $this->ctrl->clearParameters($this);
1018 $link_info.=
"</IntLinkInfos>";
1027 function getLink($a_ref_id, $a_cmd =
"", $a_term_id =
"", $a_def_id =
"",
1028 $a_frame =
"", $a_type =
"")
1043 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1044 $link = $this->ctrl->getLinkTarget($this,
"fullscreen");
1048 $link.=
"&cmd=".$a_cmd;
1051 $this->ctrl->setParameter($this,
"frame", $a_frame);
1053 if ($a_obj_id !=
"")
1058 $this->ctrl->setParameter($this,
"mob_id", $a_obj_id);
1062 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1068 $this->ctrl->setParameter($this,
"obj_type", $a_type);
1070 $link = $this->ctrl->getLinkTarget($this, $a_cmd);
1079 case "downloadFile":
1083 $link =
"fullscreen.html";
1090 $link =
"term_".$a_obj_id.
".html";
1094 $link =
"media_".$a_obj_id.
".html";
1101 $this->ctrl->clearParameters($this);
1115 $ilCtrl->saveParameter($this,
"term_id");
1117 if ((
int) $this->term_id == 0)
1120 $ilTabs->activateTab(
"print_view");
1126 $tpl->setTitle($this->lng->txt(
"cont_term").
": ".$term->getTerm());
1132 $tpl->setContent($this->form->getHTML());
1142 $terms = $this->glossary->getTermList();
1144 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1146 $this->form->setTarget(
"print_view");
1147 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
1151 $radg->setValue(
"glossary");
1154 if ((
int) $this->term_id > 0)
1157 $radg->addOption($op1);
1158 $radg->setValue(
"term");
1163 .
" (".
$lng->txt(
"cont_terms").
": ".count($terms).
")",
"glossary");
1164 $radg->addOption($op2);
1167 if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy())
1170 $radg->addOption($op4);
1173 include_once(
"./Services/Taxonomy/classes/class.ilTaxAssignInputGUI.php");
1176 if ($this->tax_node > 0)
1178 $si->setValue((
int) $this->tax_node);
1180 $op4->addSubItem(
$si);
1186 $radg->addOption($op3);
1188 include_once(
"./Services/Form/classes/class.ilNestedListInputGUI.php");
1190 $op3->addSubItem($nl);
1192 foreach ($terms as
$t)
1194 $nl->addListNode(
$t[
"id"],
$t[
"term"], 0,
false,
false);
1197 $this->form->addItem($radg);
1199 $this->form->addCommandButton(
"printView",
$lng->txt(
"cont_show_print_view"));
1200 $this->form->setPreventDoubleSubmission(
false);
1202 $this->form->setTitle(
$lng->txt(
"cont_print_selection"));
1213 global $ilAccess,
$tpl;
1215 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1221 switch (
$_POST[
"sel_type"])
1224 $ts = $this->glossary->getTermList();
1227 $terms[] =
$t[
"id"];
1232 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1233 $t_id = $this->glossary->getTaxonomyId();
1235 foreach ($items as $i)
1237 if ($i[
"item_type"] ==
"term")
1239 $terms[] = $i[
"item_id"];
1245 if (is_array(
$_POST[
"obj_id"]))
1247 $terms =
$_POST[
"obj_id"];
1256 $terms = array($this->term_id);
1276 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
1281 foreach ($terms as $t_id)
1285 $tpl->setVariable(
"CONTENT", $page_content.
1286 '<script type="text/javascript" language="javascript1.2">
1288 il.Util.addOnLoad(function () {
1304 $ilHelp->setScreenIdComponent(
"glo");
1306 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
1310 if ($this->ctrl->getCmd() !=
"listDefinitions")
1312 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1314 $tabs_gui->addTab(
"terms",
1315 $lng->txt(
"cont_terms"),
1316 $ilCtrl->getLinkTarget($this,
"listTerms"));
1319 $tabs_gui->addTab(
"info",
1320 $lng->txt(
"info_short"),
1321 $ilCtrl->getLinkTarget($this,
"infoScreen"));
1323 $tabs_gui->addTab(
"print_view",
1324 $lng->txt(
"cont_print_view"),
1325 $ilCtrl->getLinkTarget($this,
"printViewSelection"));
1328 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1333 if ($this->glossary->isActiveDownloads())
1335 $tabs_gui->addTab(
"download",
1336 $lng->txt(
"download"),
1337 $ilCtrl->getLinkTarget($this,
"showDownloadList"));
1342 if ($ilAccess->checkAccess(
"write",
"", (
int)
$_GET[
"ref_id"]) ||
1343 $ilAccess->checkAccess(
"edit_content",
"", (
int)
$_GET[
"ref_id"]))
1345 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
1346 $tabs_gui->addNonTabbedLink(
"editing_view",
1347 $lng->txt(
"glo_editing_view"),
1348 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".(int)
$_GET[
"ref_id"],
1356 $tabs_gui->addTarget(
"cont_back",
1357 "index.html#term_".$this->term_id,
"",
1363 include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefPage.php");
1365 $pg_obj->send_paragraph (
$_GET[
"par_id"],
$_GET[
"downloadtitle"]);
1376 $this->ctrl->setCmd(
"showSummary");
1377 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1395 global
$ilBench, $ilAccess, $ilTabs;
1398 $ilTabs->activateTab(
"info");
1399 $this->lng->loadLanguageModule(
"meta");
1401 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1404 $info->enablePrivateNotes();
1407 $info->enableNews();
1408 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
1410 $info->enableNewsEditing();
1412 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1413 if ($enable_internal_rss)
1415 $info->setBlockProperty(
"news",
"settings",
true);
1420 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1437 $info->addMetaDataSections($this->glossary->getId(),0, $this->glossary->getType());
1439 include_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
1444 $this->tpl->setContent(
$info->getHTML());
1445 return $this->tpl->get();
1450 $this->ctrl->forwardCommand(
$info);
1464 $ilCtrl->redirect($this,
"listTerms");
1476 if (!$this->
offlineMode() && $this->glossary->getShowTaxonomy())
1478 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1480 if (count($tax_ids) > 0)
1482 include_once(
"./Services/Taxonomy/classes/class.ilTaxonomyExplorerGUI.php");
1484 "ilglossarypresentationgui",
"listTerms");
1485 if (!$tax_exp->handleCommand())
1488 $tpl->setLeftContent($tax_exp->getHTML().
" ");
1493 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomyGUI.php");
1495 "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']