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"];
157 $ilTabs =
$DIC->tabs();
159 $this->tabs_gui = $ilTabs;
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") {
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();
672 "/goto.php?target=" .
674 "_" .
$term_id .
"_" . $ref_id .
"&client_id=" . CLIENT_ID);
681 if ($this->requested_search_str !=
"" && !$this->
offlineMode()) {
684 $search_string = $cache->getQuery();
689 $words = $p->getQuotedWords();
690 if (is_array($words)) {
691 foreach ($words as $w) {
695 $this->fill_on_load_code =
true;
697 $tpl->setContent($def_tpl->get());
699 return $tpl->printToString();
700 } elseif ($a_get_html) {
701 return $def_tpl->get();
719 $ilHelp->setScreenIdComponent(
"glo");
721 $ilCtrl->setParameter($this,
"term_id",
"");
722 $back =
$ilCtrl->getLinkTarget($this,
"listTerms");
723 $ilCtrl->setParameter($this,
"term_id", $this->term_id);
724 $ilCtrl->saveParameter($this,
"term_id");
726 $ilTabs->setBackTarget($this->lng->txt(
"obj_glo"), $back);
730 $lng->txt(
"content"),
731 $ilCtrl->getLinkTarget($this,
"listDefinitions")
736 $lng->txt(
"print_view"),
737 $ilCtrl->getLinkTarget($this,
"printViewSelection")
740 $ilCtrl->setParameterByClass(
"ilglossarytermgui",
"term_id", $this->term_id);
742 $ilTabs->addNonTabbedLink(
744 $lng->txt(
"glo_editing_view"),
745 $ilCtrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
"ilobjglossarygui",
"ilglossarytermgui"),
"listDefinitions")
749 $ilTabs->activateTab($a_act);
759 $html = $this->
media(
"fullscreen");
766 public function media($a_mode =
"media")
768 $this->tpl =
new ilGlobalTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
770 $this->tpl->setVariable(
771 "LOCATION_CONTENT_STYLESHEET",
793 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
794 $args = array(
'/_xml' =>
$xml,
'/_xsl' => $xsl );
801 $enlarge_path =
"images/enlarge.svg";
807 $this->ctrl->setParameter($this,
"obj_type",
"MediaObject");
809 $this->
getLink($this->requested_ref_id,
"fullscreen");
810 $this->ctrl->clearParameters($this);
812 $params = array(
'mode' => $mode,
'enlarge_path' => $enlarge_path,
813 'link_params' =>
"ref_id=" . $this->requested_ref_id,
'fullscreen_link' => $fullscreen_link,
814 'ref_id' => $this->requested_ref_id,
'pg_frame' => $pg_frame,
'webspace_path' => $wb_path);
815 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",
null, $args, $params);
820 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
822 $this->tpl->parseCurrentBlock();
824 $html = $this->tpl->get();
838 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
842 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.glo_download_list.html",
"Modules/Glossary");
845 $ilTabs->activateTab(
"download");
848 $this->tpl->setTitle($this->glossary->getTitle());
855 $this->tpl->addBlockfile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
858 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
860 $export_files = array();
861 $types = array(
"xml",
"html");
862 foreach ($types as
$type) {
863 if ($this->glossary->getPublicExportFile(
$type) !=
"") {
864 $dir = $this->glossary->getExportDirectory(
$type);
865 if (is_file($this->glossary->getExportDirectory(
$type) .
"/" .
866 $this->glossary->getPublicExportFile(
$type))) {
867 $size = filesize($this->glossary->getExportDirectory(
$type) .
"/" .
868 $this->glossary->getPublicExportFile(
$type));
869 $export_files[] = array(
"type" =>
$type,
870 "file" => $this->glossary->getPublicExportFile(
$type),
878 $tbl->setTitle($this->lng->txt(
"download"));
880 $tbl->setHeaderNames(array($this->lng->txt(
"cont_format"),
881 $this->lng->txt(
"cont_file"),
882 $this->lng->txt(
"size"), $this->lng->txt(
"date"),
885 $cols = array(
"format",
"file",
"size",
"date",
"download");
886 $header_params = array(
"ref_id" => $this->requested_ref_id,
887 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
888 $tbl->setHeaderVars(
$cols, $header_params);
889 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
890 $tbl->disable(
"sort");
892 $tbl->disable(
"footer");
893 $tbl->setMaxCount(count($export_files));
896 if (count($export_files) > 0) {
898 foreach ($export_files as $exp_file) {
899 $this->tpl->setCurrentBlock(
"tbl_content");
900 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
903 $this->tpl->setVariable(
"CSS_ROW", $css_row);
905 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
906 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
907 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"] .
":" . $exp_file[
"file"]);
909 $file_arr = explode(
"__", $exp_file[
"file"]);
910 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s", $file_arr[0]));
912 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->lng->txt(
"download"));
913 $this->ctrl->setParameter($this,
"type", $exp_file[
"type"]);
914 $this->tpl->setVariable(
916 $this->ctrl->getLinkTarget($this,
"downloadExportFile")
919 $this->tpl->parseCurrentBlock();
923 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
924 $this->tpl->setVariable(
"NUM_COLS", 5);
925 $this->tpl->parseCurrentBlock();
940 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
941 $ilErr->raiseError(
$lng->txt(
"permission_denied"),
$ilErr->error_obj->MESSAGE);
944 $file = $this->glossary->getPublicExportFile($this->requested_export_type);
945 if ($this->glossary->getPublicExportFile($this->requested_export_type) !=
"") {
946 $dir = $this->glossary->getExportDirectory($this->requested_export_type);
947 if (is_file($dir .
"/" . $file)) {
952 $ilErr->raiseError($this->lng->txt(
"file_not_found"),
$ilErr->MESSAGE);
965 $gloss_loc->setMode(
"presentation");
966 if (!empty($this->term_id)) {
968 $gloss_loc->setTerm($term);
970 $gloss_loc->setGlossary($this->glossary);
972 $gloss_loc->display();
984 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
988 $file = explode(
"_", $this->requested_file_id);
989 $fileObj =
new ilObjFile($file[count($file) - 1],
false);
990 $fileObj->sendFile();
1024 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1025 $link = $this->ctrl->getLinkTarget($this,
"fullscreen");
1029 $link .=
"&cmd=" . $a_cmd;
1030 if ($a_frame !=
"") {
1031 $this->ctrl->setParameter($this,
"frame", $a_frame);
1033 if ($a_obj_id !=
"") {
1036 $this->ctrl->setParameter($this,
"mob_id", $a_obj_id);
1040 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1045 $this->ctrl->setParameter($this,
"obj_type",
$a_type);
1047 $link = $this->ctrl->getLinkTarget($this, $a_cmd);
1053 case "downloadFile":
1057 $link =
"fullscreen.html";
1064 $link =
"term_" . $a_obj_id .
".html";
1068 $link =
"media_" . $a_obj_id .
".html";
1075 $this->ctrl->clearParameters($this);
1094 $ilCtrl->saveParameter($this,
"term_id");
1096 if ((
int) $this->term_id == 0) {
1098 $ilTabs->activateTab(
"print_view");
1102 $tpl->setTitle($this->lng->txt(
"cont_term") .
": " . $term->getTerm());
1108 $tpl->setContent($this->form->getHTML());
1119 $terms = $this->glossary->getTermList();
1123 $this->form->setFormAction(
$ilCtrl->getFormAction($this));
1127 $radg->setValue(
"glossary");
1130 if ((
int) $this->term_id > 0) {
1132 $radg->addOption($op1);
1133 $radg->setValue(
"term");
1138 .
" (" .
$lng->txt(
"cont_terms") .
": " . count($terms) .
")",
"glossary");
1139 $radg->addOption($op2);
1142 if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy()) {
1144 $radg->addOption($op4);
1150 $lng->txt(
"cont_topic"),
1154 if ($this->tax_node > 0) {
1155 $si->setValue((
int) $this->tax_node);
1157 $op4->addSubItem(
$si);
1162 $radg->addOption($op3);
1165 $op3->addSubItem($nl);
1167 foreach ($terms as $t) {
1168 $nl->addListNode($t[
"id"], $t[
"term"], 0,
false,
false);
1171 $this->form->addItem($radg);
1173 $this->form->addCommandButton(
"printView",
$lng->txt(
"cont_show_print_view"));
1174 $this->form->setPreventDoubleSubmission(
false);
1176 $this->form->setTitle(
$lng->txt(
"cont_print_selection"));
1190 $this->tabs_gui->setBackTarget(
1191 $this->lng->txt(
"back"),
1192 $this->ctrl->getLinkTarget($this,
"printViewSelection")
1195 if (!$ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1200 switch (
$_POST[
"sel_type"]) {
1202 $ts = $this->glossary->getTermList();
1203 foreach ($ts as $t) {
1204 $terms[] = $t[
"id"];
1209 $t_id = $this->glossary->getTaxonomyId();
1211 foreach ($items as
$i) {
1212 if (
$i[
"item_type"] ==
"term") {
1213 $terms[] =
$i[
"item_id"];
1219 if (is_array(
$_POST[
"obj_id"])) {
1220 $terms =
$_POST[
"obj_id"];
1227 $terms = array($this->term_id);
1232 $tpl->addOnLoadCode(
"il.Util.print();");
1237 foreach ($terms as $t_id) {
1240 $tpl->setContent($page_content);
1253 $ilHelp->setScreenIdComponent(
"glo");
1256 if ($this->ctrl->getCmd() !=
"listDefinitions") {
1257 if ($ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1258 $this->tabs_gui->addTab(
1260 $lng->txt(
"cont_terms"),
1261 $ilCtrl->getLinkTarget($this,
"listTerms")
1265 $this->tabs_gui->addTab(
1267 $lng->txt(
"info_short"),
1268 $ilCtrl->getLinkTarget($this,
"infoScreen")
1273 if ($ilAccess->checkAccess(
"read",
"", $this->requested_ref_id)) {
1274 $this->tabs_gui->addTab(
1276 $lng->txt(
"cont_print_view"),
1277 $ilCtrl->getLinkTarget($this,
"printViewSelection")
1281 if ($this->glossary->isActiveDownloads()) {
1282 $this->tabs_gui->addTab(
1284 $lng->txt(
"download"),
1285 $ilCtrl->getLinkTarget($this,
"showDownloadList")
1291 if ($ilAccess->checkAccess(
"write",
"", (
int) $this->requested_ref_id) ||
1292 $ilAccess->checkAccess(
"edit_content",
"", (
int) $this->requested_ref_id)) {
1293 $this->tabs_gui->addNonTabbedLink(
1295 $lng->txt(
"glo_editing_view"),
1296 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=" . (
int) $this->requested_ref_id,
1302 $this->tabs_gui->addTarget(
1304 "index.html#term_" . $this->term_id,
1318 $this->ctrl->setCmd(
"showSummary");
1319 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1332 $ilTabs->activateTab(
"info");
1333 $this->lng->loadLanguageModule(
"meta");
1336 $info->enablePrivateNotes();
1339 $info->enableNews();
1340 if ($ilAccess->checkAccess(
"write",
"", $this->requested_ref_id)) {
1341 $info->enableNewsEditing();
1343 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1344 if ($enable_internal_rss) {
1345 $info->setBlockProperty(
"news",
"settings",
true);
1350 $info->addMetaDataSections($this->glossary->getId(), 0, $this->glossary->getType());
1355 $this->tpl->setContent($info->getHTML());
1356 return $this->tpl->get();
1359 $this->ctrl->forwardCommand($info);
1373 $ilCtrl->redirect($this,
"listTerms");
1386 if (!$this->
offlineMode() && $this->glossary->getShowTaxonomy()) {
1388 if (count($tax_ids) > 0) {
1390 $DIC->globalScreen()->tool()->context()->current()
1391 ->addAdditionalData(
1395 $DIC->globalScreen()->tool()->context()->current()
1396 ->addAdditionalData(
1398 $ctrl->getCurrentClassPath()
1400 $DIC->globalScreen()->tool()->context()->current()
1401 ->addAdditionalData(
1405 $DIC->globalScreen()->tool()->context()->current()
1406 ->addAdditionalData(
1410 $DIC->globalScreen()->tool()->context()->current()
1411 ->addAdditionalData(
1420 "ilglossarypresentationgui",
1423 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)