31 protected \ILIAS\Glossary\InternalService
$service;
43 protected \ilGlobalTemplateInterface
$tpl;
44 protected \ilLanguage
$lng;
47 protected \ilObjTaxonomy
$tax;
61 string $export_format =
"",
62 string $export_dir =
"" 68 $this->offline = ($export_format !=
"");
69 $this->
access = $DIC->access();
70 $this->nav_history = $DIC[
"ilNavigationHistory"];
71 $this->
toolbar = $DIC->toolbar();
72 $this->
user = $DIC->user();
73 $this->
help = $DIC[
"ilHelp"];
74 $lng = $DIC->language();
75 $tpl = $DIC->ui()->mainTemplate();
76 $ilCtrl = $DIC->ctrl();
77 $ilTabs = $DIC->tabs();
79 $this->tabs_gui = $ilTabs;
82 $this->
ctrl = $ilCtrl;
83 $this->
ctrl->saveParameter($this, array(
"ref_id",
"letter",
"tax_node"));
84 $this->service = $DIC->glossary()
86 $this->content_style_service =
104 ->request($query_params);
106 $this->requested_ref_id = $request->getRefId();
107 $this->term_id = $request->getTermId();
108 $this->glossary_gui = $service->gui()->presentation()->ObjGlossaryGUI($this->requested_ref_id);
109 $this->glossary = $this->glossary_gui->getGlossary();
110 $this->requested_def_page_id = $request->getDefinitionPageId();
111 $this->requested_search_str = $request->getSearchString();
112 $this->requested_file_id = $request->getFileId();
113 $this->requested_mob_id = $request->getMobId();
114 $this->requested_export_type = $request->getExportType();
119 $glo_ids = $this->glossary->getAllGlossaryIds();
122 if ($this->term_id > 0) {
129 $this->tax_id = $this->glossary->getTaxonomyId();
130 if ($this->tax_id > 0 && $this->glossary->getShowTaxonomy()) {
133 $requested_tax_node = $request->getTaxNode();
134 if ($requested_tax_node > 1 && $this->tax->getTree()->readRootId() != $requested_tax_node) {
135 $this->tax_node = $requested_tax_node;
138 $this->requested_letter = $request->getLetter();
140 $this->content_style_domain = $this->content_style_service->domain()->styleForRefId($this->glossary->getRefId());
141 $this->content_style_gui = $this->content_style_service->gui();
154 $this->offline = $a_offline;
167 $this->offline_dir = $a_dir;
183 $lng->loadLanguageModule(
"content");
185 $next_class = $this->
ctrl->getNextClass($this);
186 $cmd = $this->
ctrl->getCmd(
"listTerms");
189 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id) &&
190 !($ilAccess->checkAccess(
"visible",
"", $this->requested_ref_id) &&
191 ($cmd ==
"infoScreen" || strtolower($next_class) ==
"ilinfoscreengui"))) {
195 if ($cmd !=
"listDefinitions") {
199 switch ($next_class) {
205 case "ilinfoscreengui":
209 case "ilpresentationlisttablegui":
211 $this->
ctrl->forwardCommand($prtab);
214 case "ilglossarydefpagegui":
217 $this->
ctrl->forwardCommand($page_gui);
224 $this->tpl->printToStdout();
229 $this->tpl->loadStandardTemplate();
230 $title = $this->glossary->getTitle();
232 $this->tpl->setTitle($title);
245 $a_page_gui->
setStyleId($this->content_style_domain->getEffectiveStyleId());
248 $this->fill_on_load_code =
true;
252 $this->fill_on_load_code =
false;
255 $this->
ctrl->setParameter($this,
"pg_id", $a_page_gui->
getId());
270 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
275 $ilNavigationHistory->addItem(
276 $this->requested_ref_id,
277 $this->
ctrl->getLinkTarget($this,
"listTerms"),
286 $first_letters = $this->glossary->getFirstLetters($this->tax_node);
287 if (!in_array($this->requested_letter, $first_letters)) {
290 $ai->setLetters($first_letters);
292 $ai->setParentCommand($this,
"chooseLetter");
293 $ai->setHighlighted($this->requested_letter);
294 $ilToolbar->addInputItem($ai,
true);
298 $ilCtrl->setParameter($this,
"term_id",
"");
300 $ilTabs->activateTab(
"terms");
305 $this->tpl->setPermanentLink(
"glo", $this->glossary->getRefId());
320 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
324 $this->
lng->loadLanguageModule(
"meta");
331 if ($this->glossary->getPresentationMode() ==
"full_def") {
338 $tpl->setContent($ilCtrl->getHTML($table));
340 $this->tpl->setVariable(
"ADM_CONTENT", $table->getHTML());
341 return $this->tpl->printToString();
351 $this->content_style_gui->
addCss($tpl, $this->glossary->getRefId());
354 $tpl->addCss(
"content.css");
355 $tpl->addCss(
"syntaxhighlight.css");
370 $this->glossary->getTaxonomyId()
378 $prtab->resetOffset();
379 $prtab->writeFilterToSession();
386 $prtab->resetOffset();
387 $prtab->resetFilter();
397 bool $a_get_html =
false,
405 if ($a_ref_id == 0) {
410 if ($a_term_id == 0) {
413 $term_id = $a_term_id;
416 if (!$ilAccess->checkAccess(
"read",
"",
$ref_id)) {
421 if ($this->glossary->getPresentationMode() !=
"full_def" &&
429 $tpl->loadStandardTemplate();
438 $tpl->setTitle($this->
lng->txt(
"cont_term") .
": " . $term->getTerm());
442 if ($ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
443 $cmd = array(
"edit" => $this->
ctrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
"ilobjglossarygui",
"ilglossarytermgui",
"ilobjectmetadatagui"),
""));
446 $tpl->setRightContent($mdgui->getBlockHTML($cmd));
449 $def_tpl =
new ilTemplate(
"tpl.glossary_definition_list.html",
true,
true,
"Modules/Glossary");
452 $def_tpl->setVariable(
"TXT_TERM", $term->getTerm());
453 $this->mobs = array();
457 $def_tpl->setCurrentBlock(
"toc");
458 for ($j = 1, $jMax = count($defs); $j <= $jMax; $j++) {
459 $def_tpl->setCurrentBlock(
"toc_item");
460 $def_tpl->setVariable(
"TOC_DEF_NR", $j);
461 $def_tpl->setVariable(
"TOC_DEF", $lng->txt(
"cont_definition"));
462 $def_tpl->parseCurrentBlock();
464 $def_tpl->setCurrentBlock(
"toc");
465 $def_tpl->parseCurrentBlock();
468 for ($j = 0, $jMax = count($defs); $j < $jMax; $j++) {
472 $page_gui->setGlossary($this->glossary);
473 $page_gui->setOutputMode($a_page_mode);
474 $page_gui->setStyleId($this->content_style_domain->getEffectiveStyleId());
475 $page = $page_gui->getPageObject();
481 $page_gui->setOutputMode(
"offline");
484 $page_gui->setFullscreenLink($this->
getLink(
$ref_id,
"fullscreen", $term_id, $def[
"id"]));
486 $page_gui->setTemplateOutput(
false);
487 $page_gui->setRawPageContent(
true);
489 $output = $page_gui->showPage();
491 $output = $page_gui->presentation($page_gui->getOutputMode());
494 if (count($defs) > 1) {
495 $def_tpl->setCurrentBlock(
"definition_header");
496 $def_tpl->setVariable(
498 $this->
lng->txt(
"cont_definition") .
" " . ($j + 1)
500 $def_tpl->setVariable(
"DEF_NR", ($j + 1));
501 $def_tpl->parseCurrentBlock();
504 $def_tpl->setCurrentBlock(
"definition");
505 $def_tpl->setVariable(
"PAGE_CONTENT", $output);
506 $def_tpl->parseCurrentBlock();
513 $backlist_shown =
false;
514 foreach ($sources as $src) {
515 $type = explode(
':', $src[
'type']);
521 $def_tpl->setCurrentBlock(
'backlink_item');
524 foreach ($ref_ids as $rid) {
525 if ($ilAccess->checkAccess(
"read",
"", $rid)) {
530 $def_tpl->setCurrentBlock(
"backlink_item");
531 $def_tpl->setVariable(
"BACKLINK_LINK", ILIAS_HTTP_PATH .
"/goto.php?target=" .
$type[1] .
"_" . $src[
'id']);
532 $def_tpl->setVariable(
"BACKLINK_ITEM", $lm_title .
": " . $title);
533 $def_tpl->parseCurrentBlock();
534 $backlist_shown =
true;
538 if ($backlist_shown) {
539 $def_tpl->setCurrentBlock(
"backlink_list");
540 $def_tpl->setVariable(
"BACKLINK_TITLE", $this->
lng->txt(
'glo_term_used_in'));
541 $def_tpl->parseCurrentBlock();
546 $tpl->setPermanentLink(
"git", null, $term_id .
"_" .
$ref_id);
553 if ($this->requested_search_str !=
"" && !$this->
offlineMode()) {
556 $search_string = $cache->getQuery();
561 $words = $p->getQuotedWords();
562 foreach ($words as $w) {
563 ilTextHighlighterGUI::highlight(
"ilGloContent", $w, $tpl);
565 $this->fill_on_load_code =
true;
567 $tpl->setContent($def_tpl->get());
569 return $tpl->printToString();
570 } elseif ($a_get_html) {
571 return $def_tpl->get();
586 $ilCtrl->setParameter($this,
"term_id",
"");
587 $back = $ilCtrl->getLinkTarget($this,
"listTerms");
588 $ilCtrl->setParameter($this,
"term_id", $this->term_id);
589 $ilCtrl->saveParameter($this,
"term_id");
591 $ilTabs->setBackTarget($this->
lng->txt(
"obj_glo"), $back);
595 $lng->txt(
"content"),
596 $ilCtrl->getLinkTarget($this,
"listDefinitions")
601 $lng->txt(
"print_view"),
602 $ilCtrl->getLinkTarget($this,
"printViewSelection")
605 $ilCtrl->setParameterByClass(
"ilglossarytermgui",
"term_id", $this->term_id);
607 if ($this->
access->checkAccess(
"write",
"", (
int) $this->requested_ref_id) ||
608 $this->
access->checkAccess(
"edit_content",
"", (
int) $this->requested_ref_id)) {
609 $ilTabs->addNonTabbedLink(
611 $lng->txt(
"glo_editing_view"),
612 $ilCtrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
615 ),
"listDefinitions")
620 $ilTabs->activateTab($a_act);
627 $html = $this->
media(
"fullscreen");
634 public function media(
string $a_mode =
"media"): string
636 $this->tpl =
new ilGlobalTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
638 $this->tpl->setVariable(
639 "LOCATION_CONTENT_STYLESHEET",
661 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
662 $args = array(
'/_xml' =>
$xml,
'/_xsl' => $xsl );
669 $enlarge_path =
"images/enlarge.svg";
675 $this->
ctrl->setParameter($this,
"obj_type",
"MediaObject");
677 $this->
getLink($this->requested_ref_id,
"fullscreen");
678 $this->
ctrl->clearParameters($this);
680 $params = array(
'mode' => $mode,
'enlarge_path' => $enlarge_path,
681 'link_params' =>
"ref_id=" . $this->requested_ref_id,
'fullscreen_link' => $fullscreen_link,
683 'ref_id' => $this->requested_ref_id,
'pg_frame' =>
"",
'webspace_path' => $wb_path);
684 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl", null, $args,
$params);
688 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
690 $this->tpl->parseCurrentBlock();
692 $html = $this->tpl->get();
707 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
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());
724 $this->tpl->addBlockFile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
727 $this->tpl->addBlockFile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
729 $export_files = array();
730 $types = array(
"xml",
"html");
731 foreach ($types as
$type) {
732 if ($this->glossary->getPublicExportFile($type) !=
"") {
733 $dir = $this->glossary->getExportDirectory($type);
734 if (is_file($this->glossary->getExportDirectory($type) .
"/" .
735 $this->glossary->getPublicExportFile($type))) {
736 $size = filesize($this->glossary->getExportDirectory($type) .
"/" .
737 $this->glossary->getPublicExportFile($type));
738 $export_files[] = array(
"type" => $type,
739 "file" => $this->glossary->getPublicExportFile($type),
747 $tbl->setTitle($this->
lng->txt(
"download"));
749 $tbl->setHeaderNames(array($this->
lng->txt(
"cont_format"),
750 $this->
lng->txt(
"cont_file"),
751 $this->
lng->txt(
"size"), $this->
lng->txt(
"date"),
754 $cols = array(
"format",
"file",
"size",
"date",
"download");
755 $header_params = array(
"ref_id" => $this->requested_ref_id,
756 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
757 $tbl->setHeaderVars(
$cols, $header_params);
758 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
759 $tbl->disable(
"sort");
761 $tbl->disable(
"footer");
762 $tbl->setMaxCount(count($export_files));
765 if (count($export_files) > 0) {
767 foreach ($export_files as $exp_file) {
768 $this->tpl->setCurrentBlock(
"tbl_content");
769 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
771 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
772 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
773 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"] .
":" . $exp_file[
"file"]);
775 $file_arr = explode(
"__", $exp_file[
"file"]);
776 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s", $file_arr[0]));
778 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->
lng->txt(
"download"));
779 $this->
ctrl->setParameter($this,
"type", $exp_file[
"type"]);
780 $this->tpl->setVariable(
782 $this->
ctrl->getLinkTarget($this,
"downloadExportFile")
785 $this->tpl->parseCurrentBlock();
788 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->
lng->txt(
"obj_not_found"));
789 $this->tpl->setVariable(
"NUM_COLS", 5);
790 $this->tpl->parseCurrentBlock();
802 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
806 $file = $this->glossary->getPublicExportFile($this->requested_export_type);
807 if ($this->glossary->getPublicExportFile($this->requested_export_type) !=
"") {
808 $dir = $this->glossary->getExportDirectory($this->requested_export_type);
809 if (is_file($dir .
"/" . $file)) {
820 $gloss_loc->setMode(
"presentation");
821 if (!empty($this->term_id)) {
823 $gloss_loc->setTerm($term);
825 $gloss_loc->setGlossary($this->glossary);
826 $gloss_loc->display();
834 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
838 $file = explode(
"_", $this->requested_file_id);
839 $fileObj =
new ilObjFile($file[count($file) - 1],
false);
840 $fileObj->sendFile();
854 string $a_frame =
"",
868 $this->
ctrl->setParameter($this,
"def_id", $a_def_id);
869 $link = $this->
ctrl->getLinkTarget($this,
"fullscreen");
873 $link .=
"&cmd=" . $a_cmd;
874 if ($a_frame !=
"") {
875 $this->
ctrl->setParameter($this,
"frame", $a_frame);
878 $this->
ctrl->setParameter($this,
"obj_type", $a_type);
880 $link = $this->
ctrl->getLinkTarget($this, $a_cmd);
887 $link =
"fullscreen.html";
891 $link =
"term_" . $a_term_id .
".html";
900 $this->
ctrl->clearParameters($this);
910 $ilCtrl->saveParameter($this,
"term_id");
912 if ($this->term_id == 0) {
914 $ilTabs->activateTab(
"print_view");
918 $tpl->setTitle($this->
lng->txt(
"cont_term") .
": " . $term->getTerm());
924 $tpl->setContent($this->
form->getHTML());
935 $terms = $this->glossary->getTermList();
939 $this->
form->setFormAction($ilCtrl->getFormAction($this));
946 if ($this->term_id > 0) {
947 $op1 =
new ilRadioOption($lng->txt(
"cont_current_term"),
"term");
948 $radg->addOption($op1);
954 .
" (" . $lng->txt(
"cont_terms") .
": " . count($terms) .
")",
"glossary");
955 $radg->addOption($op2);
958 if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy()) {
959 $op4 =
new ilRadioOption($lng->txt(
"cont_selected_topic"),
"sel_topic");
960 $radg->addOption($op4);
966 $lng->txt(
"cont_topic"),
970 if ($this->tax_node > 0) {
973 $op4->addSubItem($si);
977 $op3 =
new ilRadioOption($lng->txt(
"cont_selected_terms"),
"selection");
978 $radg->addOption($op3);
981 $op3->addSubItem($nl);
983 foreach ($terms as $t) {
984 $nl->addListNode((
string) $t[
"id"], (
string) $t[
"term"],
"0",
false,
false);
987 $this->
form->addItem($radg);
989 $this->
form->addCommandButton(
"printView", $lng->txt(
"cont_show_print_view"));
990 $this->
form->setPreventDoubleSubmission(
false);
992 $this->
form->setTitle($lng->txt(
"cont_print_selection"));
1000 $this->tabs_gui->setBackTarget(
1001 $this->
lng->txt(
"back"),
1002 $this->
ctrl->getLinkTarget($this,
"printViewSelection")
1005 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1010 $this->
form->checkInput();
1013 switch ($this->
form->getInput(
"sel_type")) {
1015 $ts = $this->glossary->getTermList();
1016 foreach ($ts as $t) {
1017 $terms[] = $t[
"id"];
1022 $t_id = $this->glossary->getTaxonomyId();
1024 foreach ($items as
$i) {
1025 if ($i[
"item_type"] ==
"term") {
1026 $terms[] = $i[
"item_id"];
1032 $terms = $this->
form->getInput(
"obj_id");
1036 $terms = array($this->term_id);
1041 $tpl->addOnLoadCode(
"il.Util.print();");
1046 foreach ($terms as $t_id) {
1049 $tpl->setContent($page_content);
1062 if ($this->
ctrl->getCmd() !=
"listDefinitions") {
1063 if ($ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1064 $this->tabs_gui->addTab(
1066 $lng->txt(
"cont_terms"),
1067 $ilCtrl->getLinkTarget($this,
"listTerms")
1071 $this->tabs_gui->addTab(
1073 $lng->txt(
"info_short"),
1074 $ilCtrl->getLinkTarget($this,
"infoScreen")
1079 if ($ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1080 $this->tabs_gui->addTab(
1082 $lng->txt(
"cont_print_view"),
1083 $ilCtrl->getLinkTarget($this,
"printViewSelection")
1087 if ($this->glossary->isActiveDownloads()) {
1088 $this->tabs_gui->addTab(
1090 $lng->txt(
"download"),
1091 $ilCtrl->getLinkTarget($this,
"showDownloadList")
1097 if ($ilAccess->checkAccess(
"write",
"", $this->requested_ref_id) ||
1098 $ilAccess->checkAccess(
"edit_content",
"", $this->requested_ref_id)) {
1099 $this->tabs_gui->addNonTabbedLink(
1101 $lng->txt(
"glo_editing_view"),
1108 $this->tabs_gui->addTarget(
1110 "index.html#term_" . $this->term_id,
1122 $this->
ctrl->setCmd(
"showSummary");
1123 $this->
ctrl->setCmdClass(
"ilinfoscreengui");
1133 $ilTabs->activateTab(
"info");
1134 $this->
lng->loadLanguageModule(
"meta");
1137 $info->enablePrivateNotes();
1140 $info->enableNews();
1141 if ($ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
1142 $info->enableNewsEditing();
1144 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1145 if ($enable_internal_rss) {
1146 $info->setBlockProperty(
"news",
"settings",
true);
1151 $info->addMetaDataSections($this->glossary->getId(), 0, $this->glossary->getType());
1156 $this->tpl->setContent($info->getHTML());
1157 return $this->tpl->get();
1160 $this->
ctrl->forwardCommand($info);
1168 $ilCtrl->
redirect($this,
"listTerms");
1175 if (!$this->
offlineMode() && $this->glossary->getShowTaxonomy()) {
1177 if (count($tax_ids) > 0) {
1178 $tax_id = $tax_ids[0];
1179 $DIC->globalScreen()->tool()->context()->current()
1180 ->addAdditionalData(
1184 $DIC->globalScreen()->tool()->context()->current()
1185 ->addAdditionalData(
1189 $DIC->globalScreen()->tool()->context()->current()
1190 ->addAdditionalData(
1194 $DIC->globalScreen()->tool()->context()->current()
1195 ->addAdditionalData(
1199 $DIC->globalScreen()->tool()->context()->current()
1200 ->addAdditionalData(
1209 "ilglossarypresentationgui",
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getWebspaceDir(string $mode="filesystem")
get webspace directory
ILIAS Style Content Service $content_style_service
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS Glossary InternalService $service
static addUsagesToInfo(ilInfoScreenGUI $info, int $glo_id)
Add usages to info screen.
static _getSourcesOfTarget(string $a_target_type, int $a_target_id, int $a_target_inst)
get all sources of a link target
initPrintViewSelectionForm()
Init print view selection form.
setOfflineMode(bool $a_offline=true)
set offline mode (content is generated for offline package)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
basicPageGuiInit(\ilPageObjectGUI $a_page_gui)
Basic page gui initialisation.
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
int $requested_def_page_id
special template class to simplify handling of ITX/PEAR
static getSubTreeItems(string $a_comp, int $a_obj_id, string $a_item_type, int $a_tax_id, $a_node)
Get all assigned items under a node.
setOutputMode(string $a_mode=self::PRESENTATION)
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
string $requested_file_id
static stripSlashes(string $a_str, bool $a_strip_html=true, string $a_allow="")
static _getInstance(int $a_usr_id)
static _getAllReferences(int $id)
get all reference ids for object ID
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
executeCommand()
execute command
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initByRequest(?array $query_params=null)
Init services and this class by request params.
static getUsageOfObject(int $a_obj_id, bool $a_include_titles=false)
infoScreen()
this one is called from the info button in the repository
ILIAS Style Content GUIService $content_style_gui
setOfflineDirectory(string $offdir)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getStyleSheetLocation(string $mode="output", string $a_css_name="", string $a_css_location="")
get full style sheet file name (path inclusive) of current user
setStyleId(int $a_styleid)
showDefinitionTabs(string $a_act)
getLink(int $a_ref_id, string $a_cmd="", int $a_term_id=0, int $a_def_id=0, string $a_frame="", string $a_type="")
static isReferenced(array $a_glo_id, int $a_term_id)
Is a term referenced by a set of glossaries.
static deliverFileLegacy(string $a_file, ?string $a_filename=null, ?string $a_mime=null, ?bool $isInline=false, ?bool $removeAfterDelivery=false, ?bool $a_exit_after=true)
ILIAS Style Content Object ObjectFacade $content_style_domain
Interface ilCtrlBaseClassInterface describes ilCtrl base classes.
ilObjGlossaryGUI $glossary_gui
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupTitle(int $obj_id)
__construct(string $export_format="", string $export_dir="")
setScreenIdComponent(string $a_comp)
setValue(string $a_value)
listDefinitions(int $a_ref_id=0, int $a_term_id=0, bool $a_get_html=false, string $a_page_mode=ilPageObjectGUI::PRESENTATION)
list definitions of a term
setFullscreenLink(string $a_fullscreen_link)
injectTemplate(ilGlobalTemplateInterface $tpl)
static getSyntaxStylePath()
form( $class_path, string $cmd)
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
Navigation History of Repository Items.
static getDefinitionList(int $a_term_id)
media(string $a_mode="media")
show media object
listTermByGiven()
list glossary terms
setFileDownloadLink(string $a_download_link)
setOfflineDirectory(string $a_dir)
static _getPresentationTitle(int $a_pg_id, string $a_mode=self::CHAPTER_TITLE, bool $a_include_numbers=false, bool $a_time_scheduled_activation=false, bool $a_force_content=false, int $a_lm_id=0, string $a_lang="-", bool $a_include_short=false)
presentation title doesn't have to be page title, it may be chapter title + page title or chapter tit...
ilGlobalTemplateInterface $tpl
offlineMode()
checks wether offline content generation is activated
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookupContObjID(int $a_id)
get learning module id for lm object
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
string $requested_export_type
string $requested_search_str
getPresentationTable()
Get presentation table.
showDownloadList()
show download list
ilNavigationHistory $nav_history
downloadExportFile()
send download file (xml/html)
addCss(string $a_css_file, string $media="screen")
Add a css file that should be included in the header.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _lookGlossaryID(int $term_id)
get glossary id form term id