24 require_once(
"classes/class.ilObjectGUI.php");
25 require_once(
"./Modules/Glossary/classes/class.ilObjGlossary.php");
26 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTermGUI.php");
27 require_once(
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
28 require_once(
"./Modules/Glossary/classes/class.ilTermDefinitionEditorGUI.php");
29 require_once(
"./Services/COPage/classes/class.ilPCParagraph.php");
63 $this->offline =
false;
64 $this->ctrl->saveParameter($this, array(
"ref_id"));
67 include_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
69 $this->glossary =& $this->glossary_gui->object;
79 $this->offline = $a_offline;
88 return $this->offline;
96 $this->offline_dir = $a_dir;
105 return $this->offline_dir;
116 $lng->loadLanguageModule(
"content");
118 $next_class = $this->ctrl->getNextClass($this);
119 $cmd = $this->ctrl->getCmd(
"listTerms");
122 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]) &&
123 !($ilAccess->checkAccess(
"visible",
"",
$_GET[
"ref_id"]) &&
124 (
$cmd ==
"infoScreen" || strtolower($next_class) ==
"ilinfoscreengui")))
126 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
129 if (
$cmd !=
"listDefinitions")
141 case "ilinfoscreengui":
155 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
156 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
157 $title = $this->glossary->getTitle();
162 $this->tpl->setTitle(
$title);
170 $_REQUEST[
"term"] =
"";
177 $term_list = $this->glossary->getTermList($_REQUEST[
"term"]);
184 global $ilNavigationHistory;
188 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
189 $this->ctrl->getLinkTarget($this,
"listTerms"),
"glo");
192 $term_list = $this->glossary->getTermList();
204 $this->lng->loadLanguageModule(
"meta");
205 include_once
"./Services/Table/classes/class.ilTableGUI.php";
212 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
214 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.glossary_presentation.html",
"Modules/Glossary");
219 $this->tpl->setCurrentBlock(
"search_form");
220 $this->ctrl->setParameter($this,
"offset", 0);
221 $this->ctrl->setParameter($this,
"oldoffset", $oldoffset);
222 $this->tpl->setVariable(
"FORMACTION1",
223 $this->ctrl->getFormAction($this,
"searchTerms"));
224 $this->tpl->setVariable(
"TXT_TERM", $this->lng->txt(
"cont_term"));
225 $this->tpl->setVariable(
"TXT_SEARCH", $this->lng->txt(
"search"));
226 $this->tpl->setVariable(
"TXT_CLEAR", $this->lng->txt(
"clear"));
227 $this->tpl->setVariable(
"TERM", $filter);
228 $this->tpl->parseCurrentBlock();
233 $this->tpl->addBlockfile(
"TERM_TABLE",
"term_table",
"tpl.table.html");
235 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.term_tbl_pres_row.html",
"Modules/Glossary");
243 $tbl->setTitle($this->lng->txt(
"cont_terms").(($filter==
"")?
"":
"*"));
244 $tbl->disable(
"sort");
248 if ($this->glossary->isVirtual())
250 $tbl->setHeaderNames(array($this->lng->txt(
"cont_term"),
251 $this->lng->txt(
"cont_definitions"),$this->lng->txt(
"obj_glo")));
253 $cols = array(
"term",
"definitions",
"glossary");
255 $tbl->setColumnWidth(array(
"30%",
"35%",
"35%"));
259 $tbl->setHeaderNames(array($this->lng->txt(
"cont_term"),
260 $this->lng->txt(
"cont_definitions")));
262 $cols = array(
"term",
"definitions");
264 $tbl->setColumnWidth(array(
"30%",
"70%"));
269 $header_params = $this->ctrl->getParameterArrayByClass(
"ilglossarypresentationgui",
"listTerms");
273 if (!empty ($filter)) {
274 $header_params [
"cmd"] =
"searchTerms";
275 $header_params [
"term"] = $filter;
276 $header_params [
"oldoffset"] =
$_GET[
"oldoffset"];
279 $tbl->setHeaderVars($cols, $header_params);
282 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
283 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
286 $_GET[
"limit"] = 99999;
288 $tbl->disable(
"sort");
289 $tbl->disable(
"footer");
291 $tbl->setOffset(
$_GET[
"offset"]);
292 $tbl->setLimit(
$_GET[
"limit"]);
295 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
298 $tbl->setMaxCount(count($term_list));
303 $term_list = array_slice($term_list,
$_GET[
"offset"],
$_GET[
"limit"]);
306 $tbl->setBase(
"ilias.php");
309 if (count($term_list) > 0)
312 foreach($term_list as $key => $term)
317 for($j=0; $j<count($defs); $j++)
320 if (count($defs) > 1)
322 $this->tpl->setCurrentBlock(
"definition");
323 $this->tpl->setVariable(
"DEF_TEXT", $this->lng->txt(
"cont_definition").
" ".($j + 1));
324 $this->tpl->parseCurrentBlock();
328 $this->tpl->setCurrentBlock(
"definition");
329 $short_str = $def[
"short_text"];
332 $ltexs = strrpos($short_str,
"[tex]");
333 $ltexe = strrpos($short_str,
"[/tex]");
338 $short_str = $page->getFirstParagraphText();
339 $short_str = strip_tags($short_str,
"<br>");
340 $ltexe = strpos($short_str,
"[/tex]", $ltexs);
354 $this->tpl->setVariable(
"DEF_SHORT", $short_str);
355 $this->tpl->parseCurrentBlock();
357 $this->tpl->setCurrentBlock(
"definition_row");
358 $this->tpl->parseCurrentBlock();
362 if ($this->glossary->isVirtual())
364 $this->tpl->setCurrentBlock(
"glossary_row");
366 $this->tpl->setVariable(
"GLO_TITLE", $glo_title);
367 $this->tpl->parseCurrentBlock();
370 $this->tpl->setCurrentBlock(
"view_term");
371 $this->tpl->setVariable(
"TEXT_TERM", $term[
"term"]);
374 if (!empty ($filter))
376 $this->ctrl->setParameter($this,
"term", $filter);
377 $this->ctrl->setParameter($this,
"oldoffset",
$_GET[
"oldoffset"]);
379 $this->ctrl->setParameter($this,
"term_id", $term[
"id"]);
380 $this->ctrl->setParameter($this,
"offset",
$_GET[
"offset"]);
381 $this->tpl->setVariable(
"LINK_VIEW_TERM",
382 $this->ctrl->getLinkTarget($this,
"listDefinitions"));
383 $this->ctrl->clearParameters($this);
387 $this->tpl->setVariable(
"LINK_VIEW_TERM",
"term_".$term[
"id"].
".html");
389 $this->tpl->setVariable(
"ANCHOR_TERM",
"term_".$term[
"id"]);
390 $this->tpl->parseCurrentBlock();
392 $this->tpl->setVariable(
"CSS_ROW", $css_row);
393 $this->tpl->setVariable(
"TEXT_LANGUAGE", $this->lng->txt(
"meta_l_".$term[
"language"]));
394 $this->tpl->setCurrentBlock(
"tbl_content");
395 $this->tpl->parseCurrentBlock();
397 $this->ctrl->clearParameters($this);
402 $this->tpl->setCurrentBlock(
"notfound");
403 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
404 $this->tpl->setVariable(
"NUM_COLS", $num);
405 $this->tpl->parseCurrentBlock();
409 if (!$this->
offlineMode() && $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
411 $this->tpl->setCurrentBlock(
"edit_glossary");
412 $this->tpl->setVariable(
"EDIT_TXT", $this->lng->txt(
"edit"));
413 $this->tpl->setVariable(
"EDIT_LINK",
414 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".
$_GET[
"ref_id"]);
415 $this->tpl->setVariable(
"EDIT_TARGET",
"_top");
416 $this->tpl->parseCurrentBlock();
420 $this->tpl->setCurrentBlock(
"perma_link");
421 $this->tpl->setVariable(
"PERMA_LINK", ILIAS_HTTP_PATH.
422 "/goto.php?target=glo_".$_GET[
"ref_id"].
"&client_id=".CLIENT_ID);
423 $this->tpl->setVariable(
"TXT_PERMA_LINK", $this->lng->txt(
"perma_link"));
424 $this->tpl->setVariable(
"PERMA_TARGET",
"_top");
425 $this->tpl->parseCurrentBlock();
429 return $this->tpl->get();
438 global $ilUser, $ilAccess;
440 require_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
441 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
442 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
448 $style_name = $ilUser->prefs[
"style"].
".css";;
449 $this->tpl->setVariable(
"LOCATION_STYLESHEET",
"./".$style_name);
457 $this->tpl->setCurrentBlock(
"ContentStyle");
460 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
465 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
"content.css");
467 $this->tpl->parseCurrentBlock();
470 $this->tpl->setCurrentBlock(
"SyntaxStyle");
473 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
478 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
479 "syntaxhighlight.css");
481 $this->tpl->parseCurrentBlock();
485 $this->tpl->setTitle($this->lng->txt(
"cont_term").
": ".$term->getTerm());
488 $this->tpl->addBlockfile(
"ADM_CONTENT",
"def_list",
"tpl.glossary_definition_list.html",
"Modules/Glossary");
493 $this->tpl->setVariable(
"TXT_TERM", $term->getTerm());
494 $this->mobs = array();
496 for($j=0; $j<count($defs); $j++)
500 $page = $page_gui->getPageObject();
504 $int_links = $page->getInternalLinks();
506 $page_gui->setLinkXML($link_xml);
510 $page_gui->setOutputMode(
"offline");
513 $page_gui->setSourcecodeDownloadScript($this->
getLink(
$_GET[
"ref_id"]));
514 $page_gui->setFullscreenLink($this->
getLink(
$_GET[
"ref_id"],
"fullscreen",
$_GET[
"term_id"], $def[
"id"]));
516 $page_gui->setTemplateOutput(
false);
517 $page_gui->setRawPageContent(
true);
518 $page_gui->setFileDownloadLink($this->
getLink(
$_GET[
"ref_id"],
"downloadFile"));
521 $output = $page_gui->preview();
525 $output = $page_gui->presentation($page_gui->getOutputMode());
528 if (count($defs) > 1)
530 $this->tpl->setCurrentBlock(
"definition_header");
531 $this->tpl->setVariable(
"TXT_DEFINITION",
532 $this->lng->txt(
"cont_definition").
" ".($j+1));
533 $this->tpl->parseCurrentBlock();
536 $this->tpl->setCurrentBlock(
"definition");
537 $this->tpl->setVariable(
"PAGE_CONTENT", $output);
538 $this->tpl->parseCurrentBlock();
546 $backlist_shown =
false;
547 foreach ($sources as $src)
549 $type = explode(
':',$src[
'type']);
551 if ($type[0] ==
'lm')
553 if ($type[1] ==
'pg')
558 $this->tpl->setCurrentBlock(
'backlink_item');
561 foreach($ref_ids as $rid)
563 if ($ilAccess->checkAccess(
"read",
"", $rid))
570 $this->tpl->setCurrentBlock(
"backlink_item");
571 $this->tpl->setVariable(
"BACKLINK_LINK",ILIAS_HTTP_PATH.
"/goto.php?target=".$type[1].
"_".$src[
'id']);
572 $this->tpl->setVariable(
"BACKLINK_ITEM",$lm_title.
": ".
$title);
573 $this->tpl->parseCurrentBlock();
574 $backlist_shown =
true;
581 $this->tpl->setCurrentBlock(
"backlink_list");
582 $this->tpl->setVariable(
"BACKLINK_TITLE",$this->lng->txt(
'glo_term_used_in'));
583 $this->tpl->parseCurrentBlock();
587 $this->tpl->setCurrentBlock(
"perma_link");
588 $this->tpl->setVariable(
"PERMA_LINK", ILIAS_HTTP_PATH.
591 "_".$_GET[
"term_id"].
"_".
$_GET[
"ref_id"].
"&client_id=".CLIENT_ID);
592 $this->tpl->setVariable(
"TXT_PERMA_LINK", $this->lng->txt(
"perma_link"));
593 $this->tpl->setVariable(
"PERMA_TARGET",
"_top");
594 $this->tpl->parseCurrentBlock();
600 return $this->tpl->get();
610 $html = $this->
media(
"fullscreen");
619 $this->tpl =&
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
620 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
622 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
633 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
644 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
645 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
655 $enlarge_path =
"images/enlarge.gif";
661 $this->ctrl->setParameter($this,
"obj_type",
"MediaObject");
664 $this->ctrl->clearParameters($this);
666 $params = array (
'mode' => $mode,
'enlarge_path' => $enlarge_path,
667 'link_params' =>
"ref_id=".
$_GET[
"ref_id"],
'fullscreen_link' => $fullscreen_link,
668 'ref_id' =>
$_GET[
"ref_id"],
'pg_frame' => $pg_frame,
'webspace_path' => $wb_path);
669 $output =
xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args, $params);
674 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
676 $this->tpl->parseCurrentBlock();
679 $html = $this->tpl->get();
692 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.glo_download_list.html",
"Modules/Glossary");
697 $this->tpl->setTitle($this->glossary->getTitle());
702 require_once(
"./Services/Table/classes/class.ilTableGUI.php");
706 $this->tpl->addBlockfile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
709 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
711 $export_files = array();
712 $types = array(
"xml",
"html");
713 foreach($types as $type)
715 if ($this->glossary->getPublicExportFile($type) !=
"")
717 $dir = $this->glossary->getExportDirectory($type);
718 if (is_file($this->glossary->getExportDirectory($type).
"/".
719 $this->glossary->getPublicExportFile($type)))
721 $size = filesize($this->glossary->getExportDirectory($type).
"/".
722 $this->glossary->getPublicExportFile($type));
723 $export_files[] = array(
"type" => $type,
724 "file" => $this->glossary->getPublicExportFile($type),
732 $tbl->setTitle($this->lng->txt(
"download"));
734 $tbl->setHeaderNames(array($this->lng->txt(
"cont_format"),
735 $this->lng->txt(
"cont_file"),
736 $this->lng->txt(
"size"), $this->lng->txt(
"date"),
739 $cols = array(
"format",
"file",
"size",
"date",
"download");
740 $header_params = array(
"ref_id" =>
$_GET[
"ref_id"],
"obj_id" =>
$_GET[
"obj_id"],
741 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
742 $tbl->setHeaderVars($cols, $header_params);
743 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
744 $tbl->disable(
"sort");
747 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
748 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
749 $tbl->setLimit(
$_GET[
"limit"]);
750 $tbl->setOffset(
$_GET[
"offset"]);
751 $tbl->setMaxCount($this->maxcount);
753 $this->tpl->setVariable(
"COLUMN_COUNTS", 5);
757 $tbl->disable(
"footer");
759 $tbl->setMaxCount(count($export_files));
760 $export_files = array_slice($export_files,
$_GET[
"offset"],
$_GET[
"limit"]);
763 if(count($export_files) > 0)
766 foreach($export_files as $exp_file)
768 $this->tpl->setCurrentBlock(
"tbl_content");
769 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
772 $this->tpl->setVariable(
"CSS_ROW", $css_row);
774 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
775 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
776 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"].
":".$exp_file[
"file"]);
778 $file_arr = explode(
"__", $exp_file[
"file"]);
779 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s",$file_arr[0]));
781 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->lng->txt(
"download"));
782 $this->ctrl->setParameter($this,
"type", $exp_file[
"type"]);
783 $this->tpl->setVariable(
"LINK_DOWNLOAD",
784 $this->ctrl->getLinkTarget($this,
"downloadExportFile"));
786 $this->tpl->parseCurrentBlock();
791 $this->tpl->setCurrentBlock(
"notfound");
792 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
793 $this->tpl->setVariable(
"NUM_COLS", 5);
794 $this->tpl->parseCurrentBlock();
805 $file = $this->glossary->getPublicExportFile(
$_GET[
"type"]);
806 if ($this->glossary->getPublicExportFile(
$_GET[
"type"]) !=
"")
808 $dir = $this->glossary->getExportDirectory(
$_GET[
"type"]);
815 $this->ilias->raiseError($this->lng->txt(
"file_not_found"),$this->ilias->error_obj->MESSAGE);
827 global $ilias_locator;
830 require_once (
"./Modules/Glossary/classes/class.ilGlossaryLocatorGUI.php");
832 $gloss_loc->setMode(
"presentation");
833 if (!empty(
$_GET[
"term_id"]))
836 $gloss_loc->setTerm($term);
838 $gloss_loc->setGlossary($this->glossary);
840 $gloss_loc->display();
849 include_once(
"./Modules/File/classes/class.ilObjFile.php");
851 $fileObj->sendFile();
862 #include_once("classes/class.ilTabsGUI.php");
863 #$tabs_gui =& new ilTabsGUI();
866 #$this->tpl->setVariable("TABS", $tabs_gui->getHTML());
876 if ($a_layoutframes ==
"")
878 $a_layoutframes = array();
880 $link_info =
"<IntLinkInfos>";
881 foreach ($a_int_links as $int_link)
884 $target = $int_link[
"Target"];
885 if (substr($target, 0, 4) ==
"il__")
889 $type = $int_link[
"Type"];
890 $targetframe = ($int_link[
"TargetFrame"] !=
"")
891 ? $int_link[
"TargetFrame"]
894 if ($targetframe ==
"New")
906 case "StructureObject":
908 $cont_obj =& $this->content_object;
909 if ($type ==
"PageObject")
911 $href =
"./goto.php?target=pg_".$target_id;
915 $href =
"./goto.php?target=st_".$target_id;
925 $href =
"term_".$target_id.
".html";
929 $this->ctrl->setParameter($this,
"term_id",
$target_id);
930 $href = $this->ctrl->getLinkTarget($this,
"listDefinitions");
931 $href = str_replace(
"&",
"&", $href);
936 $href =
"./goto.php?target=git_".$target_id;
943 $href =
"media_".$target_id.
".html";
947 $this->ctrl->setParameter($this,
"obj_type", $type);
948 $this->ctrl->setParameter($this,
"mob_id",
$target_id);
949 $href = $this->ctrl->getLinkTarget($this,
"media");
950 $href = str_replace(
"&",
"&", $href);
954 case "RepositoryItem":
957 $href =
"./goto.php?target=".$obj_type.
"_".
$target_id;
963 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
964 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" />";
966 $this->ctrl->clearParameters($this);
969 $link_info.=
"</IntLinkInfos>";
978 function getLink($a_ref_id, $a_cmd =
"", $a_term_id =
"", $a_def_id =
"",
979 $a_frame =
"", $a_type =
"")
994 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
995 $link = $this->ctrl->getLinkTarget($this,
"fullscreen");
996 $link = str_replace(
"&",
"&", $link);
1000 $link.=
"&cmd=".$a_cmd;
1003 $this->ctrl->setParameter($this,
"frame", $a_frame);
1005 if ($a_obj_id !=
"")
1010 $this->ctrl->setParameter($this,
"mob_id", $a_obj_id);
1014 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1020 $this->ctrl->setParameter($this,
"obj_type", $a_type);
1022 $link = $this->ctrl->getLinkTarget($this, $a_cmd);
1023 $link = str_replace(
"&",
"&", $link);
1031 case "downloadFile":
1035 $link =
"fullscreen.html";
1042 $link =
"term_".$a_obj_id.
".html";
1046 $link =
"media_".$a_obj_id.
".html";
1053 $this->ctrl->clearParameters($this);
1065 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
1069 if ($this->ctrl->getCmd() !=
"listDefinitions")
1071 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1073 $tabs_gui->addTarget(
"cont_terms",
1074 $this->ctrl->getLinkTarget($this,
"listTerms"),
1075 array(
"listTerms",
"searchTerms",
"clearTerms",
""),
1079 $force_active =
false;
1080 if ($this->ctrl->getCmd() ==
"showSummary" ||
1081 strtolower($this->ctrl->getNextClass()) ==
"ilinfoscreengui")
1083 $force_active =
true;
1085 $tabs_gui->addTarget(
"information_abbr",
1086 $this->ctrl->getLinkTarget($this,
"infoScreen"), array(
"infoScreen"),
1087 "ilInfoScreenGUI",
"", $force_active);
1090 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1092 if ($this->glossary->isActiveGlossaryMenu())
1095 if ($this->glossary->isActiveDownloads())
1097 $tabs_gui->addTarget(
"download",
1098 $this->ctrl->getLinkTarget($this,
"showDownloadList"),
"showDownloadList",
1106 $this->ctrl->setParameter($this,
"offset",
$_GET[
"offset"]);
1107 if (!empty ($_REQUEST[
"term"]))
1109 $this->ctrl->setParameter($this,
"term", $_REQUEST[
"term"]);
1110 $this->ctrl->setParameter($this,
"oldoffset",
$_GET[
"oldoffset"]);
1111 $back = $this->ctrl->getLinkTarget($this,
"searchTerms");
1115 $back = $this->ctrl->getLinkTarget($this,
"listTerms");
1117 $tabs_gui->setBackTarget($this->lng->txt(
"obj_glo"),
1124 $tabs_gui->addTarget(
"cont_back",
1125 "index.html#term_".
$_GET[
"term_id"],
"",
1131 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
1133 $pg_obj->send_paragraph (
$_GET[
"par_id"],
$_GET[
"downloadtitle"]);
1144 $this->ctrl->setCmd(
"showSummary");
1145 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1166 $this->lng->loadLanguageModule(
"meta");
1168 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1171 $info->enablePrivateNotes();
1174 $info->enableNews();
1175 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
1177 $info->enableNewsEditing();
1179 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1180 if ($enable_internal_rss)
1182 $info->setBlockProperty(
"news",
"settings",
true);
1187 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1204 $info->addMetaDataSections($this->glossary->getId(),0, $this->glossary->getType());
1208 $this->tpl->setContent($info->getHTML());
1209 return $this->tpl->get();
1214 $this->ctrl->forwardCommand($info);