29 protected \ILIAS\COPage\Xsl\XslManager
$xsl;
31 protected \ILIAS\Glossary\InternalGUIService
$gui;
32 protected \ILIAS\Glossary\InternalDomainService
$domain;
48 protected \ilGlobalTemplateInterface
$tpl;
49 protected \ilLanguage
$lng;
52 protected \ilObjTaxonomy
$tax;
68 string $export_format =
"",
69 string $export_dir =
"" 73 $service = $DIC->glossary()->internal();
75 $this->domain = $domain =
$service->domain();
78 $this->
access = $DIC->access();
79 $this->
user = $domain->user();
80 $this->
lng = $DIC->language();
82 $this->
toolbar = $gui->toolbar();
83 $this->
help = $gui->help();
84 $this->nav_history = $DIC[
"ilNavigationHistory"];
85 $this->tpl = $gui->ui()->mainTemplate();
86 $this->
ctrl = $gui->ctrl();
87 $this->tabs_gui = $gui->tabs();
88 $this->global_screen = $gui->globalScreen();
92 $this->offline = ($export_format !=
"");
93 $this->ui_fac = $DIC->ui()->factory();
94 $this->ui_ren = $DIC->ui()->renderer();
95 $this->offline = ($export_format !==
"");
97 $this->
ctrl->saveParameter($this, array(
"ref_id",
"letter",
"tax_node"));
98 $this->content_style_service =
101 $this->xsl = $DIC->copage()->internal()->domain()->xsl();
102 $this->tax_manager = $domain->taxonomy($this->glossary);
114 $request = $this->gui
116 ->request($query_params);
118 $this->requested_ref_id = $request->getRefId();
119 $this->term_id = $request->getTermId();
120 $this->glossary_gui = $this->gui->presentation()->ObjGlossaryGUI($this->requested_ref_id);
121 $this->glossary = $this->glossary_gui->getGlossary();
122 $this->requested_def_page_id = $request->getDefinitionPageId();
123 $this->requested_search_str = $request->getSearchString();
124 $this->requested_file_id = $request->getFileId();
125 $this->requested_mob_id = $request->getMobId();
126 $this->requested_export_type = $request->getExportType();
131 $glo_ids = $this->glossary->getAllGlossaryIds();
134 if ($this->term_id > 0) {
141 $this->tax_id = $this->glossary->getTaxonomyId();
142 if ($this->tax_id > 0 && $this->glossary->getShowTaxonomy()) {
145 $requested_tax_node = $request->getTaxNode();
146 if ($requested_tax_node > 1 && $this->tax->getTree()->readRootId() != $requested_tax_node) {
147 $this->tax_node = $requested_tax_node;
150 $this->requested_letter = $request->getLetter();
152 $this->content_style_domain = $this->content_style_service->domain()->styleForRefId($this->glossary->getRefId());
153 $this->content_style_gui = $this->content_style_service->gui();
166 $this->offline = $a_offline;
179 $this->offline_dir = $a_dir;
195 $lng->loadLanguageModule(
"content");
197 $next_class = $this->
ctrl->getNextClass($this);
198 if ($this->glossary->isActiveFlashcards()) {
199 $cmd = $this->
ctrl->getCmd(
"showFlashcards");
201 $cmd = $this->
ctrl->getCmd(
"listTerms");
205 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id) &&
206 !($ilAccess->checkAccess(
"visible",
"", $this->requested_ref_id) &&
207 ($cmd ==
"infoScreen" || strtolower($next_class) ==
"ilinfoscreengui"))) {
211 if ($cmd !=
"listDefinitions") {
215 switch ($next_class) {
221 case "ilinfoscreengui":
225 case "ilpresentationfullgui":
228 $full_gui = $this->gui->presentation()
229 ->PresentationFullGUI($this, $this->glossary, $this->
offlineMode(), $this->tax_node);
230 $this->
ctrl->forwardCommand($full_gui);
233 case "ilpresentationlisttablegui":
235 $this->
ctrl->forwardCommand($prtab);
238 case "ilglossarydefpagegui":
241 $this->
ctrl->forwardCommand($page_gui);
244 case "ilglossaryflashcardgui":
246 $this->
ctrl->forwardCommand($flash_gui);
249 case "ilglossaryflashcardboxgui":
251 $this->
ctrl->forwardCommand($flash_box_gui);
258 $this->tpl->printToStdout();
263 $this->tpl->loadStandardTemplate();
264 $title = $this->glossary->getTitle();
266 $this->tpl->setTitle($title);
279 $a_page_gui->
setStyleId($this->content_style_domain->getEffectiveStyleId());
282 $this->fill_on_load_code =
true;
286 $this->fill_on_load_code =
false;
289 $this->
ctrl->setParameter($this,
"pg_id", $a_page_gui->
getId());
304 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
309 if ($this->glossary->getPresentationMode() ==
"full_def") {
313 $ilNavigationHistory->addItem(
314 $this->requested_ref_id,
315 $this->
ctrl->getLinkTarget($this,
"listTerms"),
324 $first_letters = $this->glossary->getFirstLetters($this->tax_node);
325 if (!in_array($this->requested_letter, $first_letters)) {
328 $ai->setLetters($first_letters);
330 $ai->setParentCommand($this,
"chooseLetter");
331 $ai->setHighlighted($this->requested_letter);
332 $ilToolbar->addInputItem($ai,
true);
338 $ilCtrl->setParameter($this,
"term_id",
"");
340 $ilTabs->activateTab(
"terms");
345 $this->tpl->setPermanentLink(
"glo", $this->glossary->getRefId());
360 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
364 $this->
lng->loadLanguageModule(
"meta");
374 $tpl->setContent($ilCtrl->getHTML($table));
376 $this->tpl->setVariable(
"ADM_CONTENT", $table->getHTML());
377 return $this->tpl->printToString();
397 $this->content_style_gui->
addCss($tpl, $this->glossary->getRefId());
400 $tpl->addCss(
"content.css");
401 $tpl->addCss(
"syntaxhighlight.css");
416 $this->glossary->getTaxonomyId()
424 $prtab->resetOffset();
425 $prtab->writeFilterToSession();
432 $prtab->resetOffset();
433 $prtab->resetFilter();
443 bool $a_get_html =
false,
444 bool $render_term =
true,
446 bool $render_page_container =
true 453 if ($a_ref_id == 0) {
458 if ($a_term_id == 0) {
461 $term_id = $a_term_id;
464 if (!$ilAccess->checkAccess(
"read",
"",
$ref_id)) {
469 if ($this->glossary->getPresentationMode() !=
"full_def" &&
481 $tpl->loadStandardTemplate();
490 $tpl->setTitle($this->
lng->txt(
"cont_term") .
": " . $term->getTerm());
494 if ($ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
495 $cmd = array(
"edit" => $this->
ctrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
"ilobjglossarygui",
"ilglossarytermgui",
"ilobjectmetadatagui"),
""));
498 $tpl->setRightContent($mdgui->getBlockHTML($cmd));
501 $def_tpl =
new ilTemplate(
"tpl.glossary_definition_list.html",
true,
true,
"Modules/Glossary");
503 if ($render_page_container) {
504 $def_tpl->touchBlock(
"page_container_1");
505 $def_tpl->touchBlock(
"page_container_2");
509 $def_tpl->setVariable(
"TXT_TERM", $term->getTerm());
511 $this->mobs = array();
515 $page_gui->setGlossary($this->glossary);
516 $page_gui->setOutputMode($a_page_mode);
517 $page_gui->setStyleId($this->content_style_domain->getEffectiveStyleId());
518 $page = $page_gui->getPageObject();
524 $page_gui->setOutputMode(
"offline");
527 $page_gui->setFullscreenLink($this->
getLink(
$ref_id,
"fullscreen", $term_id));
529 $page_gui->setTemplateOutput(
false);
530 $page_gui->setRawPageContent(
true);
532 $output = $page_gui->showPage();
534 $output = $page_gui->presentation($page_gui->getOutputMode());
537 $def_tpl->setCurrentBlock(
"definition");
538 $def_tpl->setVariable(
"PAGE_CONTENT", $output);
539 $def_tpl->parseCurrentBlock();
545 $backlist_shown =
false;
546 foreach ($sources as $src) {
547 $type = explode(
':', $src[
'type']);
549 if ($type[0] ==
'lm' && $type[1] ==
'pg') {
553 $def_tpl->setCurrentBlock(
'backlink_item');
556 foreach ($ref_ids as $rid) {
557 if ($ilAccess->checkAccess(
"read",
"", $rid)) {
562 $def_tpl->setCurrentBlock(
"backlink_item");
563 $def_tpl->setVariable(
"BACKLINK_LINK", ILIAS_HTTP_PATH .
"/goto.php?target=" . $type[1] .
"_" . $src[
'id']);
564 $def_tpl->setVariable(
"BACKLINK_ITEM", $lm_title .
": " . $title);
565 $def_tpl->parseCurrentBlock();
566 $backlist_shown =
true;
570 if ($backlist_shown) {
571 $def_tpl->setCurrentBlock(
"backlink_list");
572 $def_tpl->setVariable(
"BACKLINK_TITLE", $this->
lng->txt(
'glo_term_used_in'));
573 $def_tpl->parseCurrentBlock();
578 $tpl->setPermanentLink(
"git", null, $term_id .
"_" .
$ref_id);
585 if ($this->requested_search_str !=
"" && !$this->
offlineMode()) {
588 $search_string = $cache->getQuery();
593 $words = $p->getQuotedWords();
594 foreach ($words as $w) {
595 ilTextHighlighterGUI::highlight(
"ilGloContent", $w, $tpl);
597 $this->fill_on_load_code =
true;
599 $tpl->setContent($def_tpl->get());
601 return $tpl->printToString();
602 } elseif ($a_get_html) {
603 return $def_tpl->get();
618 $ilCtrl->setParameter($this,
"term_id",
"");
619 $back = $ilCtrl->getLinkTarget($this,
"listTerms");
620 $ilCtrl->setParameter($this,
"term_id", $this->term_id);
621 $ilCtrl->saveParameter($this,
"term_id");
623 $ilTabs->setBackTarget($this->
lng->txt(
"obj_glo"), $back);
627 $lng->txt(
"content"),
628 $ilCtrl->getLinkTarget($this,
"listDefinitions")
633 $lng->txt(
"print_view"),
634 $ilCtrl->getLinkTarget($this,
"printViewSelection")
637 $ilCtrl->setParameterByClass(
"ilglossarytermgui",
"term_id", $this->term_id);
639 if ($this->
access->checkAccess(
"write",
"", (
int) $this->requested_ref_id) ||
640 $this->
access->checkAccess(
"edit_content",
"", (
int) $this->requested_ref_id)) {
641 $ilTabs->addNonTabbedLink(
643 $lng->txt(
"glo_editing_view"),
644 $ilCtrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
652 $ilTabs->activateTab($a_act);
659 $html = $this->
media(
"fullscreen");
666 public function media(
string $a_mode =
"media"): string
668 $this->tpl =
new ilGlobalTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
670 $this->tpl->setVariable(
671 "LOCATION_CONTENT_STYLESHEET",
697 $enlarge_path =
"images/media/enlarge.svg";
703 $this->
ctrl->setParameter($this,
"obj_type",
"MediaObject");
705 $this->
getLink($this->requested_ref_id,
"fullscreen");
706 $this->
ctrl->clearParameters($this);
708 $params = array(
'mode' => $mode,
'enlarge_path' => $enlarge_path,
709 'link_params' =>
"ref_id=" . $this->requested_ref_id,
'fullscreen_link' => $fullscreen_link,
711 'ref_id' => $this->requested_ref_id,
'pg_frame' =>
"",
'webspace_path' => $wb_path);
712 $output = $this->xsl->process($xml,
$params);
715 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
717 $this->tpl->parseCurrentBlock();
719 $html = $this->tpl->get();
734 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
738 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.glo_download_list.html",
"Modules/Glossary");
741 $ilTabs->activateTab(
"download");
744 $this->tpl->setTitle($this->glossary->getTitle());
751 $this->tpl->addBlockFile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
754 $this->tpl->addBlockFile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
756 $export_files = array();
757 $types = array(
"xml",
"html");
758 foreach ($types as $type) {
759 if ($this->glossary->getPublicExportFile($type) !=
"") {
760 $dir = $this->glossary->getExportDirectory($type);
761 if (is_file($this->glossary->getExportDirectory($type) .
"/" .
762 $this->glossary->getPublicExportFile($type))) {
763 $size = filesize($this->glossary->getExportDirectory($type) .
"/" .
764 $this->glossary->getPublicExportFile($type));
765 $export_files[] = array(
"type" => $type,
766 "file" => $this->glossary->getPublicExportFile($type),
774 $tbl->setTitle($this->
lng->txt(
"download"));
776 $tbl->setHeaderNames(array($this->
lng->txt(
"cont_format"),
777 $this->
lng->txt(
"cont_file"),
778 $this->
lng->txt(
"size"), $this->
lng->txt(
"date"),
781 $cols = array(
"format",
"file",
"size",
"date",
"download");
782 $header_params = array(
"ref_id" => $this->requested_ref_id,
783 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
784 $tbl->setHeaderVars($cols, $header_params);
785 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
786 $tbl->disable(
"sort");
788 $tbl->disable(
"footer");
789 $tbl->setMaxCount(count($export_files));
792 if (count($export_files) > 0) {
794 foreach ($export_files as $exp_file) {
795 $this->tpl->setCurrentBlock(
"tbl_content");
796 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
798 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
799 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
800 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"] .
":" . $exp_file[
"file"]);
802 $file_arr = explode(
"__", $exp_file[
"file"]);
803 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s", $file_arr[0]));
805 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->
lng->txt(
"download"));
806 $this->
ctrl->setParameter($this,
"type", $exp_file[
"type"]);
807 $this->tpl->setVariable(
809 $this->
ctrl->getLinkTarget($this,
"downloadExportFile")
812 $this->tpl->parseCurrentBlock();
815 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->
lng->txt(
"obj_not_found"));
816 $this->tpl->setVariable(
"NUM_COLS", 5);
817 $this->tpl->parseCurrentBlock();
829 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
833 $file = $this->glossary->getPublicExportFile($this->requested_export_type);
834 if ($this->glossary->getPublicExportFile($this->requested_export_type) !=
"") {
835 $dir = $this->glossary->getExportDirectory($this->requested_export_type);
836 if (is_file($dir .
"/" . $file)) {
847 $gloss_loc->setMode(
"presentation");
848 if (!empty($this->term_id)) {
850 $gloss_loc->setTerm($term);
852 $gloss_loc->setGlossary($this->glossary);
853 $gloss_loc->display();
861 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
865 $file = explode(
"_", $this->requested_file_id);
866 $fileObj =
new ilObjFile($file[count($file) - 1],
false);
867 $fileObj->sendFile();
880 string $a_frame =
"",
894 $this->
ctrl->setParameter($this,
"term_id", $a_term_id);
895 $link = $this->
ctrl->getLinkTarget($this,
"fullscreen");
899 $link .=
"&cmd=" . $a_cmd;
900 if ($a_frame !=
"") {
901 $this->
ctrl->setParameter($this,
"frame", $a_frame);
904 $this->
ctrl->setParameter($this,
"obj_type", $a_type);
906 $link = $this->
ctrl->getLinkTarget($this, $a_cmd);
912 $link =
"fullscreen.html";
916 $link =
"term_" . $a_term_id .
".html";
925 $this->
ctrl->clearParameters($this);
935 $ilCtrl->saveParameter($this,
"term_id");
937 if ($this->term_id == 0) {
939 $ilTabs->activateTab(
"print_view");
943 $tpl->setTitle($this->
lng->txt(
"cont_term") .
": " . $term->getTerm());
949 $tpl->setContent($this->
form->getHTML());
960 $terms = $this->glossary->getTermList();
964 $this->
form->setFormAction($ilCtrl->getFormAction($this));
971 if ($this->term_id > 0) {
972 $op1 =
new ilRadioOption($lng->txt(
"cont_current_term"),
"term");
973 $radg->addOption($op1);
979 .
" (" . $lng->txt(
"cont_terms") .
": " . count($terms) .
")",
"glossary");
980 $radg->addOption($op2);
983 if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy()) {
984 $op4 =
new ilRadioOption($lng->txt(
"cont_selected_topic"),
"sel_topic");
985 $radg->addOption($op4);
991 $lng->txt(
"cont_topic"),
995 if ($this->tax_node > 0) {
998 $op4->addSubItem($si);
1002 $op3 =
new ilRadioOption($lng->txt(
"cont_selected_terms"),
"selection");
1003 $radg->addOption($op3);
1006 $op3->addSubItem($nl);
1007 foreach ($terms as $t) {
1008 $nl->addListNode((
string) $t[
"id"], (
string) $t[
"term"],
"0",
false,
false);
1011 $this->
form->addItem($radg);
1013 $this->
form->addCommandButton(
"printView", $lng->txt(
"cont_show_print_view"));
1014 $this->
form->setPreventDoubleSubmission(
false);
1016 $this->
form->setTitle($lng->txt(
"cont_print_selection"));
1024 $this->tabs_gui->setBackTarget(
1025 $this->
lng->txt(
"back"),
1026 $this->
ctrl->getLinkTarget($this,
"printViewSelection")
1029 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1034 $this->
form->checkInput();
1037 switch ($this->
form->getInput(
"sel_type")) {
1039 $ts = $this->glossary->getTermList();
1040 foreach ($ts as $t) {
1041 $terms[] = $t[
"id"];
1046 $t_id = $this->glossary->getTaxonomyId();
1048 foreach ($items as $i) {
1049 if ($i[
"item_type"] ==
"term") {
1050 $terms[] = $i[
"item_id"];
1056 $terms = $this->
form->getInput(
"obj_id");
1060 $terms = array($this->term_id);
1065 $tpl->addOnLoadCode(
"il.Util.print();");
1070 foreach ($terms as $t_id) {
1073 $tpl->setContent($page_content);
1086 if ($this->
ctrl->getCmd() !=
"listDefinitions") {
1087 if ($ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1088 if ($this->glossary->isActiveFlashcards()) {
1089 $this->tabs_gui->addTab(
1091 $lng->txt(
"glo_flashcards"),
1092 $ilCtrl->getLinkTarget($this,
"showFlashcards")
1095 $this->tabs_gui->addTab(
1097 $lng->txt(
"content"),
1098 $ilCtrl->getLinkTarget($this,
"listTerms")
1102 $this->tabs_gui->addTab(
1104 $lng->txt(
"info_short"),
1105 $ilCtrl->getLinkTarget($this,
"infoScreen")
1110 if ($ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1111 $this->tabs_gui->addTab(
1113 $lng->txt(
"cont_print_view"),
1114 $ilCtrl->getLinkTarget($this,
"printViewSelection")
1118 if ($this->glossary->isActiveDownloads()) {
1119 $this->tabs_gui->addTab(
1121 $lng->txt(
"download"),
1122 $ilCtrl->getLinkTarget($this,
"showDownloadList")
1128 if ($ilAccess->checkAccess(
"write",
"", $this->requested_ref_id) ||
1129 $ilAccess->checkAccess(
"edit_content",
"", $this->requested_ref_id)) {
1130 $this->tabs_gui->addNonTabbedLink(
1132 $lng->txt(
"glo_editing_view"),
1139 $this->tabs_gui->addTarget(
1141 "index.html#term_" . $this->term_id,
1153 $this->
ctrl->setCmd(
"showSummary");
1154 $this->
ctrl->setCmdClass(
"ilinfoscreengui");
1164 $ilTabs->activateTab(
"info");
1165 $this->
lng->loadLanguageModule(
"meta");
1168 $info->enablePrivateNotes();
1171 $info->enableNews();
1172 if ($ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
1173 $info->enableNewsEditing();
1175 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1176 if ($enable_internal_rss) {
1177 $info->setBlockProperty(
"news",
"settings",
true);
1182 $info->addMetaDataSections($this->glossary->getId(), 0, $this->glossary->getType());
1187 $this->tpl->setContent($info->getHTML());
1188 return $this->tpl->get();
1191 $this->
ctrl->forwardCommand($info);
1199 $ilCtrl->
redirect($this,
"listTerms");
1206 if ($this->
offlineMode() || !$this->tax_manager->showInPresentation()) {
1210 $tax_id = $this->tax_manager->getTaxonomyId();
1212 $tool_context = $this->global_screen->tool()->context()->current();
1214 $tool_context->addAdditionalData(
1218 $tool_context->addAdditionalData(
1222 $tool_context->addAdditionalData(
1226 $tool_context->addAdditionalData(
1230 $tool_context->addAdditionalData(
1241 $ilTabs->activateTab(
"flashcards");
1243 $flashcards->listBoxes();
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...
listTermByGivenAsTable()
list glossary terms
static addUsagesToInfo(ilInfoScreenGUI $info, int $glo_id)
Add usages to info screen.
redirectByClass( $a_class, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
listTermByGivenAsPanel()
list glossary terms
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)
ILIAS UI Renderer $ui_ren
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...
initByRequest(?array $query_params=null)
Init services and this class by request params.
GUI class for glossary flashcard boxes.
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)
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)
GUI class for glossary flashcards.
setValue(string $a_value)
ILIAS Glossary InternalGUIService $gui
ILIAS Glossary InternalDomainService $domain
setFullscreenLink(string $a_fullscreen_link)
injectTemplate(ilGlobalTemplateInterface $tpl)
static getSyntaxStylePath()
static getContentStylePath(int $a_style_id, bool $add_random=true, bool $add_token=true)
get content style path static (to avoid full reading)
Last visited history for repository items.
media(string $a_mode="media")
show media object
setFileDownloadLink(string $a_download_link)
form( $class_path, string $cmd, string $submit_caption="")
setOfflineDirectory(string $a_dir)
listDefinitions(int $a_ref_id=0, int $a_term_id=0, bool $a_get_html=false, bool $render_term=true, string $a_page_mode=ilPageObjectGUI::PRESENTATION, bool $render_page_container=true)
list definitions of a term
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
ILIAS GlobalScreen Services $global_screen
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
getLink(int $a_ref_id, string $a_cmd="", int $a_term_id=0, string $a_frame="", string $a_type="")
ilNavigationHistory $nav_history
ILIAS Glossary Taxonomy TaxonomyManager $tax_manager
ILIAS COPage Xsl XslManager $xsl
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