141 public function __construct($export_format =
"", $export_dir =
"")
145 $this->export_format = $export_format;
147 $this->offline = ($export_format !=
"");
148 $this->access =
$DIC->access();
149 $this->
error = $DIC[
"ilErr"];
150 $this->nav_history =
$DIC[
"ilNavigationHistory"];
151 $this->toolbar =
$DIC->toolbar();
152 $this->
user = $DIC->user();
153 $this->
help = $DIC[
"ilHelp"];
156 $ilCtrl =
$DIC->ctrl();
157 $ilTabs =
$DIC->tabs();
159 $this->tabs_gui = $ilTabs;
162 $this->ctrl = $ilCtrl;
163 $this->ctrl->saveParameter($this, array(
"ref_id",
"letter",
"tax_node"));
187 $request = $this->service->getRequest();
189 $this->requested_ref_id = $request->getRequestedRefId();
190 $this->term_id = $request->getRequestedTermId();
191 $this->glossary_gui = $this->service->getGlossaryGUI();
192 $this->glossary = $this->service->getGlossary();
193 $this->requested_def_page_id = $request->getRequestedDefinitionPageId();
194 $this->requested_search_str = $request->getRequestedSearchString();
195 $this->requested_file_id = $request->getRequestedFileId();
196 $this->requested_mob_id = $request->getRequestedMobId();
197 $this->requested_export_type = (string) $query_params[
"type"];
202 $glo_ids = $this->glossary->getAllGlossaryIds();
203 if (!is_array($glo_ids)) {
204 $glo_ids = array($glo_ids);
208 if ((
int) $this->term_id > 0) {
215 $this->tax_id = $this->glossary->getTaxonomyId();
216 if ($this->tax_id > 0 && $this->glossary->getShowTaxonomy()) {
219 $requested_tax_node = $request->getRequestedTaxNode();
220 if ((
int) $requested_tax_node > 1 && $this->tax->getTree()->readRootId() != $requested_tax_node) {
221 $this->tax_node = $requested_tax_node;
224 $this->requested_letter = $request->getRequestedLetter();
240 $this->offline = $a_offline;
248 return $this->offline;
256 $this->offline_dir = $a_dir;
265 return $this->offline_dir;
278 $lng->loadLanguageModule(
"content");
280 $next_class = $this->ctrl->getNextClass($this);
281 $cmd = $this->ctrl->getCmd(
"listTerms");
284 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id) &&
285 !($ilAccess->checkAccess(
"visible",
"", $this->requested_ref_id) &&
286 ($cmd ==
"infoScreen" || strtolower($next_class) ==
"ilinfoscreengui"))) {
290 if ($cmd !=
"listDefinitions") {
294 switch ($next_class) {
300 case "ilinfoscreengui":
304 case "ilpresentationlisttablegui":
306 $this->ctrl->forwardCommand($prtab);
310 case "ilglossarydefpagegui":
313 $this->ctrl->forwardCommand($page_gui);
317 $ret = $this->$cmd();
320 $this->tpl->printToStdout();
325 $this->tpl->loadStandardTemplate();
326 $title = $this->glossary->getTitle();
328 $this->tpl->setTitle($title);
344 $this->glossary->getStyleSheetId(),
349 $this->fill_on_load_code =
true;
353 $this->fill_on_load_code =
false;
356 $this->ctrl->setParameter($this,
"pg_id", $a_page_gui->
getId());
376 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
381 $ilNavigationHistory->addItem(
382 $this->requested_ref_id,
383 $this->ctrl->getLinkTarget($this,
"listTerms"),
390 $ai->setFixDBUmlauts(
true);
392 $first_letters = $this->glossary->getFirstLetters($this->tax_node);
393 if (!is_array($first_letters)) {
396 if (!in_array($this->requested_letter, $first_letters)) {
399 $ai->setLetters($first_letters);
401 $ai->setParentCommand($this,
"chooseLetter");
402 $ai->setHighlighted($this->requested_letter);
403 $ilToolbar->addInputItem($ai,
true);
407 $ilCtrl->setParameter($this,
"term_id",
"");
409 $ilTabs->activateTab(
"terms");
414 $this->tpl->setPermanentLink(
"glo", $this->glossary->getRefId());
429 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
433 $this->lng->loadLanguageModule(
"meta");
440 if ($this->glossary->getPresentationMode() ==
"full_def") {
447 $tpl->setContent($ilCtrl->getHTML($table));
449 $this->tpl->setVariable(
"ADM_CONTENT", $table->getHTML());
450 return $this->tpl->printToString();
463 $this->glossary->getStyleSheetId(),
468 $tpl->addCss(
"content.css");
469 $tpl->addCss(
"syntaxhighlight.css");
487 $this->glossary->getTaxonomyId()
500 $prtab->resetOffset();
501 $prtab->writeFilterToSession();
512 $prtab->resetOffset();
513 $prtab->resetFilter();
528 if ($a_ref_id == 0) {
529 $ref_id = (int) $this->requested_ref_id;
533 if ($a_term_id == 0) {
539 if (!$ilAccess->checkAccess(
"read",
"", $ref_id)) {
544 if ($this->glossary->getPresentationMode() !=
"full_def" &&
552 $tpl->loadStandardTemplate();
561 $tpl->setTitle($this->lng->txt(
"cont_term") .
": " . $term->getTerm());
565 if ($ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
566 $cmd = array(
"edit" => $this->ctrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
"ilobjglossarygui",
"ilglossarytermgui",
"ilobjectmetadatagui"),
""));
569 $tpl->setRightContent($mdgui->getBlockHTML($cmd));
572 $def_tpl =
new ilTemplate(
"tpl.glossary_definition_list.html",
true,
true,
"Modules/Glossary");
575 $def_tpl->setVariable(
"TXT_TERM", $term->getTerm());
576 $this->mobs = array();
580 $def_tpl->setCurrentBlock(
"toc");
581 for ($j = 1; $j <= count($defs); $j++) {
582 $def_tpl->setCurrentBlock(
"toc_item");
583 $def_tpl->setVariable(
"TOC_DEF_NR", $j);
584 $def_tpl->setVariable(
"TOC_DEF",
$lng->txt(
"cont_definition"));
585 $def_tpl->parseCurrentBlock();
587 $def_tpl->setCurrentBlock(
"toc");
588 $def_tpl->parseCurrentBlock();
591 for ($j = 0; $j < count($defs); $j++) {
595 $page_gui->setGlossary($this->glossary);
596 $page_gui->setOutputMode($a_page_mode);
597 $page_gui->setStyleId($this->glossary->getStyleSheetId());
598 $page = $page_gui->getPageObject();
604 $page_gui->setOutputMode(
"offline");
607 $page_gui->setFullscreenLink($this->
getLink($ref_id,
"fullscreen",
$term_id, $def[
"id"]));
609 $page_gui->setTemplateOutput(
false);
610 $page_gui->setRawPageContent(
true);
612 $output = $page_gui->showPage();
614 $output = $page_gui->presentation($page_gui->getOutputMode());
617 if (count($defs) > 1) {
618 $def_tpl->setCurrentBlock(
"definition_header");
619 $def_tpl->setVariable(
621 $this->lng->txt(
"cont_definition") .
" " . ($j + 1)
623 $def_tpl->setVariable(
"DEF_NR", ($j + 1));
624 $def_tpl->parseCurrentBlock();
627 $def_tpl->setCurrentBlock(
"definition");
628 $def_tpl->setVariable(
"PAGE_CONTENT", $output);
629 $def_tpl->parseCurrentBlock();
636 $backlist_shown =
false;
637 foreach ($sources as $src) {
638 $type = explode(
':', $src[
'type']);
640 if (
$type[0] ==
'lm') {
641 if (
$type[1] ==
'pg') {
645 $def_tpl->setCurrentBlock(
'backlink_item');
648 foreach ($ref_ids as $rid) {
649 if ($ilAccess->checkAccess(
"read",
"", $rid)) {
654 $def_tpl->setCurrentBlock(
"backlink_item");
655 $def_tpl->setVariable(
"BACKLINK_LINK", ILIAS_HTTP_PATH .
"/goto.php?target=" .
$type[1] .
"_" . $src[
'id']);
656 $def_tpl->setVariable(
"BACKLINK_ITEM", $lm_title .
": " . $title);
657 $def_tpl->parseCurrentBlock();
658 $backlist_shown =
true;
663 if ($backlist_shown) {
664 $def_tpl->setCurrentBlock(
"backlink_list");
665 $def_tpl->setVariable(
"BACKLINK_TITLE", $this->lng->txt(
'glo_term_used_in'));
666 $def_tpl->parseCurrentBlock();
671 $tpl->setPermanentLink(
"git",
"",
$term_id .
"_" . $ref_id);
678 if ($this->requested_search_str !=
"" && !$this->
offlineMode()) {
681 $search_string = $cache->getQuery();
686 $words = $p->getQuotedWords();
687 if (is_array($words)) {
688 foreach ($words as $w) {
692 $this->fill_on_load_code =
true;
694 $tpl->setContent($def_tpl->get());
696 return $tpl->printToString();
697 } elseif ($a_get_html) {
698 return $def_tpl->get();
716 $ilHelp->setScreenIdComponent(
"glo");
718 $ilCtrl->setParameter($this,
"term_id",
"");
719 $back = $ilCtrl->getLinkTarget($this,
"listTerms");
720 $ilCtrl->setParameter($this,
"term_id", $this->term_id);
721 $ilCtrl->saveParameter($this,
"term_id");
723 $ilTabs->setBackTarget($this->lng->txt(
"obj_glo"), $back);
727 $lng->txt(
"content"),
728 $ilCtrl->getLinkTarget($this,
"listDefinitions")
733 $lng->txt(
"print_view"),
734 $ilCtrl->getLinkTarget($this,
"printViewSelection")
737 $ilCtrl->setParameterByClass(
"ilglossarytermgui",
"term_id", $this->term_id);
739 if ($this->access->checkAccess(
"write",
"", (
int) $this->requested_ref_id) ||
740 $this->access->checkAccess(
"edit_content",
"", (
int) $this->requested_ref_id)) {
741 $ilTabs->addNonTabbedLink(
743 $lng->txt(
"glo_editing_view"),
744 $ilCtrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
747 ),
"listDefinitions")
752 $ilTabs->activateTab($a_act);
762 $html = $this->
media(
"fullscreen");
769 public function media($a_mode =
"media")
771 $this->tpl =
new ilGlobalTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
773 $this->tpl->setVariable(
774 "LOCATION_CONTENT_STYLESHEET",
796 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
797 $args = array(
'/_xml' =>
$xml,
'/_xsl' => $xsl );
804 $enlarge_path =
"images/enlarge.svg";
810 $this->ctrl->setParameter($this,
"obj_type",
"MediaObject");
812 $this->
getLink($this->requested_ref_id,
"fullscreen");
813 $this->ctrl->clearParameters($this);
815 $params = array(
'mode' => $mode,
'enlarge_path' => $enlarge_path,
816 'link_params' =>
"ref_id=" . $this->requested_ref_id,
'fullscreen_link' => $fullscreen_link,
818 'ref_id' => $this->requested_ref_id,
'pg_frame' => $pg_frame,
'webspace_path' => $wb_path);
819 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",
null, $args, $params);
824 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
826 $this->tpl->parseCurrentBlock();
828 $html = $this->tpl->get();
842 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
846 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.glo_download_list.html",
"Modules/Glossary");
849 $ilTabs->activateTab(
"download");
852 $this->tpl->setTitle($this->glossary->getTitle());
859 $this->tpl->addBlockfile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
862 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
864 $export_files = array();
865 $types = array(
"xml",
"html");
866 foreach ($types as
$type) {
867 if ($this->glossary->getPublicExportFile(
$type) !=
"") {
868 $dir = $this->glossary->getExportDirectory(
$type);
869 if (is_file($this->glossary->getExportDirectory(
$type) .
"/" .
870 $this->glossary->getPublicExportFile(
$type))) {
871 $size = filesize($this->glossary->getExportDirectory(
$type) .
"/" .
872 $this->glossary->getPublicExportFile(
$type));
873 $export_files[] = array(
"type" =>
$type,
874 "file" => $this->glossary->getPublicExportFile(
$type),
882 $tbl->setTitle($this->lng->txt(
"download"));
884 $tbl->setHeaderNames(array($this->lng->txt(
"cont_format"),
885 $this->lng->txt(
"cont_file"),
886 $this->lng->txt(
"size"), $this->lng->txt(
"date"),
889 $cols = array(
"format",
"file",
"size",
"date",
"download");
890 $header_params = array(
"ref_id" => $this->requested_ref_id,
891 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
892 $tbl->setHeaderVars(
$cols, $header_params);
893 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
894 $tbl->disable(
"sort");
896 $tbl->disable(
"footer");
897 $tbl->setMaxCount(count($export_files));
900 if (count($export_files) > 0) {
902 foreach ($export_files as $exp_file) {
903 $this->tpl->setCurrentBlock(
"tbl_content");
904 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
907 $this->tpl->setVariable(
"CSS_ROW", $css_row);
909 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
910 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
911 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"] .
":" . $exp_file[
"file"]);
913 $file_arr = explode(
"__", $exp_file[
"file"]);
914 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s", $file_arr[0]));
916 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->lng->txt(
"download"));
917 $this->ctrl->setParameter($this,
"type", $exp_file[
"type"]);
918 $this->tpl->setVariable(
920 $this->ctrl->getLinkTarget($this,
"downloadExportFile")
923 $this->tpl->parseCurrentBlock();
927 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
928 $this->tpl->setVariable(
"NUM_COLS", 5);
929 $this->tpl->parseCurrentBlock();
944 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
945 $ilErr->raiseError(
$lng->txt(
"permission_denied"),
$ilErr->error_obj->MESSAGE);
948 $file = $this->glossary->getPublicExportFile($this->requested_export_type);
949 if ($this->glossary->getPublicExportFile($this->requested_export_type) !=
"") {
950 $dir = $this->glossary->getExportDirectory($this->requested_export_type);
951 if (is_file($dir .
"/" . $file)) {
956 $ilErr->raiseError($this->lng->txt(
"file_not_found"),
$ilErr->MESSAGE);
969 $gloss_loc->setMode(
"presentation");
970 if (!empty($this->term_id)) {
972 $gloss_loc->setTerm($term);
974 $gloss_loc->setGlossary($this->glossary);
976 $gloss_loc->display();
988 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
992 $file = explode(
"_", $this->requested_file_id);
993 $fileObj =
new ilObjFile($file[count($file) - 1],
false);
994 $fileObj->sendFile();
1028 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1029 $link = $this->ctrl->getLinkTarget($this,
"fullscreen");
1033 $link .=
"&cmd=" . $a_cmd;
1034 if ($a_frame !=
"") {
1035 $this->ctrl->setParameter($this,
"frame", $a_frame);
1037 if ($a_obj_id !=
"") {
1040 $this->ctrl->setParameter($this,
"mob_id", $a_obj_id);
1044 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1048 if ($a_type !=
"") {
1049 $this->ctrl->setParameter($this,
"obj_type", $a_type);
1051 $link = $this->ctrl->getLinkTarget($this, $a_cmd);
1057 case "downloadFile":
1061 $link =
"fullscreen.html";
1068 $link =
"term_" . $a_obj_id .
".html";
1072 $link =
"media_" . $a_obj_id .
".html";
1079 $this->ctrl->clearParameters($this);
1098 $ilCtrl->saveParameter($this,
"term_id");
1100 if ((
int) $this->term_id == 0) {
1102 $ilTabs->activateTab(
"print_view");
1106 $tpl->setTitle($this->lng->txt(
"cont_term") .
": " . $term->getTerm());
1112 $tpl->setContent($this->form->getHTML());
1123 $terms = $this->glossary->getTermList();
1127 $this->form->setFormAction($ilCtrl->getFormAction($this));
1131 $radg->setValue(
"glossary");
1134 if ((
int) $this->term_id > 0) {
1136 $radg->addOption($op1);
1137 $radg->setValue(
"term");
1142 .
" (" .
$lng->txt(
"cont_terms") .
": " . count($terms) .
")",
"glossary");
1143 $radg->addOption($op2);
1146 if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy()) {
1148 $radg->addOption($op4);
1154 $lng->txt(
"cont_topic"),
1158 if ($this->tax_node > 0) {
1159 $si->setValue((
int) $this->tax_node);
1161 $op4->addSubItem(
$si);
1166 $radg->addOption($op3);
1169 $op3->addSubItem($nl);
1171 foreach ($terms as $t) {
1172 $nl->addListNode($t[
"id"], $t[
"term"], 0,
false,
false);
1175 $this->form->addItem($radg);
1177 $this->form->addCommandButton(
"printView",
$lng->txt(
"cont_show_print_view"));
1178 $this->form->setPreventDoubleSubmission(
false);
1180 $this->form->setTitle(
$lng->txt(
"cont_print_selection"));
1194 $this->tabs_gui->setBackTarget(
1195 $this->lng->txt(
"back"),
1196 $this->ctrl->getLinkTarget($this,
"printViewSelection")
1199 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1204 switch (
$_POST[
"sel_type"]) {
1206 $ts = $this->glossary->getTermList();
1207 foreach ($ts as $t) {
1208 $terms[] = $t[
"id"];
1213 $t_id = $this->glossary->getTaxonomyId();
1215 foreach ($items as
$i) {
1216 if (
$i[
"item_type"] ==
"term") {
1217 $terms[] =
$i[
"item_id"];
1223 if (is_array(
$_POST[
"obj_id"])) {
1224 $terms =
$_POST[
"obj_id"];
1231 $terms = array($this->term_id);
1236 $tpl->addOnLoadCode(
"il.Util.print();");
1241 foreach ($terms as $t_id) {
1244 $tpl->setContent($page_content);
1257 $ilHelp->setScreenIdComponent(
"glo");
1260 if ($this->ctrl->getCmd() !=
"listDefinitions") {
1261 if ($ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1262 $this->tabs_gui->addTab(
1264 $lng->txt(
"cont_terms"),
1265 $ilCtrl->getLinkTarget($this,
"listTerms")
1269 $this->tabs_gui->addTab(
1271 $lng->txt(
"info_short"),
1272 $ilCtrl->getLinkTarget($this,
"infoScreen")
1277 if ($ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1278 $this->tabs_gui->addTab(
1280 $lng->txt(
"cont_print_view"),
1281 $ilCtrl->getLinkTarget($this,
"printViewSelection")
1285 if ($this->glossary->isActiveDownloads()) {
1286 $this->tabs_gui->addTab(
1288 $lng->txt(
"download"),
1289 $ilCtrl->getLinkTarget($this,
"showDownloadList")
1295 if ($ilAccess->checkAccess(
"write",
"", (
int) $this->requested_ref_id) ||
1296 $ilAccess->checkAccess(
"edit_content",
"", (
int) $this->requested_ref_id)) {
1297 $this->tabs_gui->addNonTabbedLink(
1299 $lng->txt(
"glo_editing_view"),
1300 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=" . (
int) $this->requested_ref_id,
1306 $this->tabs_gui->addTarget(
1308 "index.html#term_" . $this->term_id,
1322 $this->ctrl->setCmd(
"showSummary");
1323 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1336 $ilTabs->activateTab(
"info");
1337 $this->lng->loadLanguageModule(
"meta");
1340 $info->enablePrivateNotes();
1343 $info->enableNews();
1344 if ($ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
1345 $info->enableNewsEditing();
1347 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1348 if ($enable_internal_rss) {
1349 $info->setBlockProperty(
"news",
"settings",
true);
1354 $info->addMetaDataSections($this->glossary->getId(), 0, $this->glossary->getType());
1359 $this->tpl->setContent($info->getHTML());
1360 return $this->tpl->get();
1363 $this->ctrl->forwardCommand($info);
1377 $ilCtrl->redirect($this,
"listTerms");
1390 if (!$this->
offlineMode() && $this->glossary->getShowTaxonomy()) {
1392 if (count($tax_ids) > 0) {
1394 $DIC->globalScreen()->tool()->context()->current()
1395 ->addAdditionalData(
1399 $DIC->globalScreen()->tool()->context()->current()
1400 ->addAdditionalData(
1402 $ctrl->getCurrentClassPath()
1404 $DIC->globalScreen()->tool()->context()->current()
1405 ->addAdditionalData(
1409 $DIC->globalScreen()->tool()->context()->current()
1410 ->addAdditionalData(
1414 $DIC->globalScreen()->tool()->context()->current()
1415 ->addAdditionalData(
1424 "ilglossarypresentationgui",
1427 if (!$tax_exp->handleCommand()) {
An exception for terminatinating execution or to throw for unit testing.
Glossary presentation service.
error($a_errmsg)
set error message @access public
special template class to simplify handling of ITX/PEAR
Glossary definition page GUI class.
static getDefinitionList($a_term_id)
static
downloadFile()
download file of file lists
outputInfoScreen()
info screen
printViewSelection()
Print view selection.
getPresentationTable()
Get presentation table.
listDefinitions($a_ref_id=0, $a_term_id=0, $a_get_html=false, $a_page_mode=ilPageObjectGUI::PRESENTATION)
list definitions of a term
getOfflineDirectory()
Get offline directory.
showDownloadList()
show download list
basicPageGuiInit(\ilPageObjectGUI $a_page_gui)
Basic page gui initialisation.
initPrintViewSelectionForm()
Init print view selection form.
media($a_mode="media")
show media object
getLink( $a_ref_id, $a_cmd="", $a_term_id="", $a_def_id="", $a_frame="", $a_type="")
handles links for learning module presentation
initByRequest(array $query_params)
Init services and this class by request params.
chooseLetter()
Choose first letter.
setOfflineDirectory($a_dir)
Set offline directory.
__construct($export_format="", $export_dir="")
Constructor @access public.
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.
setLocator($a_tree="", $a_id="")
set Locator
fullscreen()
show fullscreen view
applyFilter()
Apply filter.
listTermByGiven()
list glossary terms
injectTemplate($tpl)
Inject template.
showTaxonomy()
Show taxonomy.
listTerms()
List all terms.
executeCommand()
execute command
downloadExportFile()
send download file (xml/html)
offlineMode()
checks wether offline content generation is activated
showDefinitionTabs($a_act)
Definitions tabs.
setContentStyles()
Set content styles.
static isReferenced($a_glo_id, $a_term_id)
Is a term referenced by one or multiple glossaries.
static _lookGlossaryID($term_id)
get glossary id form term id
static _getSourcesOfTarget($a_target_type, $a_target_id, $a_target_inst)
get all sources of a link target
static _lookupContObjID($a_id)
get learning module / digibook id for lm object
static _getPresentationTitle( $a_pg_id, $a_mode=self::CHAPTER_TITLE, $a_include_numbers=false, $a_time_scheduled_activation=false, $a_force_content=false, $a_lm_id=0, $a_lang="-", $a_include_short=false)
presentation title doesn't have to be page title, it may be chapter title + page title or chapter tit...
static addUsagesToInfo($info, $glo_id)
Add usages to info.
static getSyntaxStylePath()
get syntax style path
static getEffectiveContentStyleId($a_style_id, $a_type="")
Get effective Style Id.
static getContentStylePath($a_style_id, $add_random=true, $add_token=true)
get content style path
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 _lookupTitle($a_id)
lookup object title
static _getAllReferences($a_id)
get all reference ids of object
setOutputMode($a_mode=self::PRESENTATION)
Set Output Mode.
setFileDownloadLink($a_download_link)
Set file download link.
setFullscreenLink($a_fullscreen_link)
Set fullscreen link.
setStyleId($a_styleid)
Set Style Id.
setOfflineDirectory($offdir)
set offline directory to offdir
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 deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)