5 require_once(
"./Services/Object/classes/class.ilObject.php");
6 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
7 include_once(
"./Services/AdvancedMetaData/interfaces/interface.ilAdvancedMetaDataSubItems.php");
35 parent::__construct($a_id,$a_call_by_reference);
54 $ilDB->manipulate(
"INSERT INTO glossary (id, is_online, glossary.virtual, pres_mode, snippet_length) VALUES (".
55 $ilDB->quote($this->getId(),
"integer").
",".
56 $ilDB->quote(
"n",
"text").
",".
58 $ilDB->quote(
"table",
"text").
",".
59 $ilDB->quote(200,
"integer").
68 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
82 # echo "Glossary<br>\n"; 84 $q =
"SELECT * FROM glossary WHERE id = ".
85 $ilDB->quote($this->
getId(),
"integer");
86 $gl_set = $ilDB->query($q);
87 $gl_rec = $ilDB->fetchAssoc($gl_set);
98 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
102 $set = $ilDB->query(
"SELECT * FROM glo_glossaries ".
103 " WHERE id = ".$ilDB->quote($this->getId(),
"integer")
106 while ($rec = $ilDB->fetchAssoc($set))
108 $glos[] = $rec[
"glo_id"];
122 return parent::getDescription();
130 parent::setDescription($a_description);
144 $this->virtual_mode = $a_mode;
145 $this->
virtual =
true;
149 $this->virtual_mode =
"none";
150 $this->
virtual =
false;
160 return $this->virtual_mode;
168 return $this->virtual;
178 return parent::getTitle();
186 parent::setTitle($a_title);
197 $this->pres_mode = $a_val;
207 return $this->pres_mode;
217 $this->snippet_length = $a_val;
227 return ($this->snippet_length > 0)
228 ? $this->snippet_length
234 $this->online = $a_online;
239 return $this->online;
249 $q =
"SELECT is_online FROM glossary WHERE id = ".
250 $ilDB->quote($a_id,
"integer");
252 $lm_rec = $ilDB->fetchAssoc(
$lm_set);
263 static protected function lookup($a_id, $a_property)
267 $set = $ilDB->query(
"SELECT $a_property FROM glossary WHERE id = ".
268 $ilDB->quote($a_id,
"integer"));
269 $rec = $ilDB->fetchAssoc($set);
271 return $rec[$a_property];
288 $this->glo_menu_active = $a_act_glo_menu;
293 return $this->glo_menu_active;
298 $this->downloads_active = $a_down;
303 return $this->downloads_active;
311 return $this->style_id;
319 $this->style_id = $a_style_id;
330 $this->show_tax = $a_val;
340 return $this->show_tax;
350 $this->auto_glossaries =
array();
351 if (is_array($a_val))
353 foreach ($a_val as $v)
357 !in_array($v, $this->auto_glossaries))
359 $this->auto_glossaries[] = $v;
403 $ilDB->manipulate(
"UPDATE glossary SET ".
404 " is_online = ".$ilDB->quote(
ilUtil::tf2yn($this->getOnline()),
"text").
",".
405 " glossary.virtual = ".$ilDB->quote($this->
getVirtualMode(),
"text").
",".
411 " show_tax = ".$ilDB->quote((
int) $this->
getShowTaxonomy(),
"integer").
", ".
412 " snippet_length = ".$ilDB->quote((
int)$this->
getSnippetLength(),
"integer").
" ".
413 " WHERE id = ".$ilDB->quote($this->
getId(),
"integer"));
415 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
434 $ilDB->manipulate(
"DELETE FROM glo_glossaries WHERE ".
435 " id = ".$ilDB->quote($this->getId(),
"integer")
439 $ilDB->manipulate(
"INSERT INTO glo_glossaries ".
440 "(id, glo_id) VALUES (".
441 $ilDB->quote($this->getId(),
"integer").
",".
442 $ilDB->quote($glo_id,
"integer").
458 $set = $ilDB->query(
"SELECT * FROM glo_glossaries ".
459 " WHERE id = ".$ilDB->quote($a_id,
"integer")
462 while ($rec = $ilDB->fetchAssoc($set))
464 $glos[] = $rec[
"glo_id"];
472 function getTermList($searchterm =
"", $a_letter =
"", $a_def =
"", $a_tax_node = 0, $a_include_offline_childs =
false,
473 $a_add_amet_fields =
false,
array $a_amet_filter = null, $a_omit_virtual =
false, $a_include_references =
false)
477 $glo_ids[] = $this->
getId();
484 $a_add_amet_fields, $a_amet_filter, $a_include_references);
495 return $first_letters;
513 switch ($virtual_mode)
516 $glo_arr = $tree->getChildsByType($tree->getParentId($this->getRefId()),
"glo");
517 $glo_ids[] = $this->
getId();
518 foreach ($glo_arr as $glo)
521 $glo_ids[] = $glo[
'obj_id'];
524 if (!$a_include_offline_childs)
530 if (!in_array($this->
getId(), $glo_ids))
532 $glo_ids[] = $this->
getId();
537 $subtree_nodes = $tree->getSubTree($tree->getNodeData($tree->getParentId($this->getRefId())));
539 foreach ($subtree_nodes as $node)
541 if ($node[
'type'] ==
'glo')
543 $glo_ids[] = $node[
'obj_id'];
546 if (!$a_include_offline_childs)
552 if (!in_array($this->
getId(), $glo_ids))
554 $glo_ids[] = $this->
getId();
560 $glo_ids[] = $this->
getId();
566 $glo_ids = $this->
getId();
581 if(!is_writable($glo_data_dir))
583 $this->
ilias->raiseError(
"Glossary Data Directory (".$glo_data_dir
584 .
") not writeable.",$this->
ilias->error_obj->FATAL);
588 $glo_dir = $glo_data_dir.
"/glo_".$this->
getId();
590 if(!@is_dir($glo_dir))
592 $this->
ilias->raiseError(
"Creation of Glossary Directory failed.",$this->
ilias->error_obj->FATAL);
595 $import_dir = $glo_dir.
"/import";
597 if(!@is_dir($import_dir))
599 $this->
ilias->raiseError(
"Creation of Export Directory failed.",$this->
ilias->error_obj->FATAL);
618 include_once(
"./Services/Export/classes/class.ilExport.php");
627 include_once(
"./Services/Export/classes/class.ilExport.php");
636 include_once(
"./Services/Export/classes/class.ilExport.php");
648 $this->public_export_file[
$a_type] = $a_file;
660 return $this->public_export_file[
$a_type];
675 include_once
'./Services/MathJax/classes/class.ilMathJax.php';
678 include_once(
"./Services/COPage/classes/class.ilCOPageHTMLExport.php");
680 $this->co_page_html_export->createDirectories();
684 $style_name = $ilias->account->prefs[
"style"].
".css";
685 copy($location_stylesheet, $a_target_dir.
"/".$style_name);
690 $cont_stylesheet =
"Services/COPage/css/content.css";
691 copy($cont_stylesheet, $a_target_dir.
"/content.css");
695 $content_style_img_dir = $a_target_dir.
"/images";
698 $style->writeCSSFile($a_target_dir.
"/content.css",
"images");
699 $style->copyImagesToDir($content_style_img_dir);
704 copy($syn_stylesheet, $a_target_dir.
"/syntaxhighlight.css");
707 include_once(
"./Modules/Glossary/classes/class.ilGlossaryPresentationGUI.php");
708 $_GET[
"cmd"] =
"nop";
710 $glo_gui->setOfflineMode(
true);
711 $glo_gui->setOfflineDirectory($a_target_dir);
721 foreach ($this->offline_mobs as $mob)
723 $this->
exportHTMLMOB($a_target_dir, $glo_gui, $mob,
"_blank");
725 $_GET[
"obj_type"] =
"MediaObject";
726 $_GET[
"obj_id"] = $a_mob_id;
730 foreach ($this->offline_files as
$file)
736 $image_dir = $a_target_dir.
"/images";
740 $image_dir.
"/enlarge.svg");
742 $image_dir.
"/browser/plus.png");
744 $image_dir.
"/browser/minus.png");
746 $image_dir.
"/browser/blank.png");
748 $image_dir.
"/icon_st.svg");
750 $image_dir.
"/icon_pg.svg");
752 $image_dir.
"/nav_arr_L.png");
754 $image_dir.
"/nav_arr_R.png");
757 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
758 $tpl->setVariable(
"LOCATION_STYLESHEET",$location_stylesheet);
759 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
782 include_once(
"./Services/COPage/classes/class.ilCOPageHTMLExport.php");
784 $copage_export->exportSupportScripts();
787 $a_glo_gui->tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
788 $style_name = $ilUser->prefs[
"style"].
".css";;
789 $a_glo_gui->tpl->setVariable(
"LOCATION_STYLESHEET",
"./".$style_name);
790 $a_glo_gui->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
791 $a_glo_gui->tpl->setTitle($this->
getTitle());
793 $content = $a_glo_gui->listTerms();
794 $file = $a_target_dir.
"/index.html";
797 if (!($fp = @fopen(
$file,
"w+")))
799 die (
"<b>Error</b>: Could not open \"".
$file.
"\" for writing".
800 " in <b>".__FILE__.
"</b> on line <b>".__LINE__.
"</b><br />");
803 fwrite($fp, $content);
808 $this->offline_mobs =
array();
809 $this->offline_files =
array();
811 foreach($terms as $term)
813 $a_glo_gui->tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
814 $a_glo_gui->tpl = $copage_export->getPreparedMainTemplate();
818 $style_name = $ilUser->prefs[
"style"].
".css";;
819 $a_glo_gui->tpl->setVariable(
"LOCATION_STYLESHEET",
"./".$style_name);
821 $_GET[
"term_id"] = $term[
"id"];
822 $_GET[
"frame"] =
"_blank";
823 $content = $a_glo_gui->listDefinitions(
$_GET[
"ref_id"],$term[
"id"],
false);
824 $file = $a_target_dir.
"/term_".$term[
"id"].
".html";
827 if (!($fp = @fopen(
$file,
"w+")))
829 die (
"<b>Error</b>: Could not open \"".
$file.
"\" for writing".
830 " in <b>".__FILE__.
"</b> on line <b>".__LINE__.
"</b><br />");
833 fwrite($fp, $content);
837 include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
839 foreach($defs as $def)
842 foreach($def_mobs as $def_mob)
844 $this->offline_mobs[$def_mob] = $def_mob;
848 include_once(
"./Modules/File/classes/class.ilObjFile.php");
850 $this->offline_files = array_merge($this->offline_files, $def_files);
863 $mob_dir = $a_target_dir.
"/mobs";
866 if (@is_dir($source_dir))
872 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
873 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
874 $_GET[
"obj_type"] =
"MediaObject";
875 $_GET[
"mob_id"] = $a_mob_id;
877 $content = $a_glo_gui->media();
878 $file = $a_target_dir.
"/media_".$a_mob_id.
".html";
881 if (!($fp = @fopen(
$file,
"w+")))
883 die (
"<b>Error</b>: Could not open \"".
$file.
"\" for writing".
884 " in <b>".__FILE__.
"</b> on line <b>".__LINE__.
"</b><br />");
887 fwrite($fp, $content);
891 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
893 if ($mob_obj->hasFullscreenItem())
895 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
896 $tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
897 $_GET[
"mob_id"] = $a_mob_id;
898 $_GET[
"cmd"] =
"fullscreen";
899 $content = $a_glo_gui->fullscreen();
900 $file = $a_target_dir.
"/fullscreen_".$a_mob_id.
".html";
903 if (!($fp = @fopen(
$file,
"w+")))
905 die (
"<b>Error</b>: Could not open \"".
$file.
"\" for writing".
906 " in <b>".__FILE__.
"</b> on line <b>".__LINE__.
"</b><br />");
909 fwrite($fp, $content);
919 $file_dir = $a_target_dir.
"/files/file_".$a_file_id;
921 include_once(
"./Modules/File/classes/class.ilObjFile.php");
922 $file_obj =
new ilObjFile($a_file_id,
false);
923 $source_file = $file_obj->getDirectory($file_obj->getVersion()).
"/".$file_obj->getFileName();
924 if (!is_file($source_file))
926 $source_file = $file_obj->getDirectory().
"/".$file_obj->getFileName();
928 copy($source_file, $file_dir.
"/".$file_obj->getFileName());
938 function exportXML(&$a_xml_writer, $a_inst, $a_target_dir, &$expLog)
944 $attrs[
"Type"] =
"Glossary";
945 $a_xml_writer->xmlStartTag(
"ContentObject", $attrs);
952 $this->mob_ids =
array();
953 $this->file_ids =
array();
954 foreach ($terms as $term)
956 include_once
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php";
960 foreach($defs as $def)
963 $this->page_object->buildDom();
964 $this->page_object->insertInstIntoIDs(IL_INST_ID);
965 $mob_ids = $this->page_object->collectMediaObjects(
false);
966 include_once(
"./Services/COPage/classes/class.ilPCFileList.php");
968 foreach($mob_ids as $mob_id)
970 $this->mob_ids[$mob_id] = $mob_id;
972 foreach($file_ids as $file_id)
974 $this->file_ids[$file_id] = $file_id;
980 $expLog->write(
date(
"[y-m-d H:i:s] ").
"Start Export Media Objects");
981 $ilBench->start(
"GlossaryExport",
"exportMediaObjects");
983 $ilBench->stop(
"GlossaryExport",
"exportMediaObjects");
984 $expLog->write(
date(
"[y-m-d H:i:s] ").
"Finished Export Media Objects");
987 $expLog->write(
date(
"[y-m-d H:i:s] ").
"Start Export File Items");
988 $ilBench->start(
"ContentObjectExport",
"exportFileItems");
990 $ilBench->stop(
"ContentObjectExport",
"exportFileItems");
991 $expLog->write(
date(
"[y-m-d H:i:s] ").
"Finished Export File Items");
994 $expLog->write(
date(
"[y-m-d H:i:s] ").
"Start Export Glossary Items");
995 $ilBench->start(
"GlossaryExport",
"exportGlossaryItems");
997 $ilBench->stop(
"GlossaryExport",
"exportGlossaryItems");
998 $expLog->write(
date(
"[y-m-d H:i:s] ").
"Finished Export Glossary Items");
1000 $a_xml_writer->xmlEndTag(
"ContentObject");
1014 $a_xml_writer->xmlStartTag(
"Glossary", $attrs);
1023 foreach ($terms as $term)
1025 $ilBench->start(
"GlossaryExport",
"exportGlossaryItem");
1026 $expLog->write(
date(
"[y-m-d H:i:s] ").
"Page Object ".$page[
"obj_id"]);
1029 $ilBench->start(
"GlossaryExport",
"exportGlossaryItem_getGlossaryTerm");
1031 $ilBench->stop(
"GlossaryExport",
"exportGlossaryItem_getGlossaryTerm");
1032 $ilBench->start(
"GlossaryExport",
"exportGlossaryItem_XML");
1033 $glo_term->exportXML($a_xml_writer, $a_inst);
1034 $ilBench->stop(
"GlossaryExport",
"exportGlossaryItem_XML");
1038 $ilBench->stop(
"GlossaryExport",
"exportGlossaryItem");
1041 $a_xml_writer->xmlEndTag(
"Glossary");
1052 include_once(
"Services/MetaData/classes/class.ilMD2XML.php");
1054 $md2xml->setExportMode(
true);
1055 $md2xml->startExport();
1056 $a_xml_writer->appendXML($md2xml->getXML());
1067 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
1069 foreach ($this->mob_ids as $mob_id)
1071 $expLog->write(
date(
"[y-m-d H:i:s] ").
"Media Object ".$mob_id);
1073 $media_obj->exportXML($a_xml_writer, $a_inst);
1074 $media_obj->exportFiles($a_target_dir);
1085 include_once(
"./Modules/File/classes/class.ilObjFile.php");
1087 foreach ($this->file_ids as $file_id)
1089 $expLog->write(
date(
"[y-m-d H:i:s] ").
"File Item ".$file_id);
1090 $file_obj =
new ilObjFile($file_id,
false);
1091 $file_obj->export($a_target_dir);
1103 if ($a_tag ==
"Identifier" && $a_param ==
"Entry")
1105 $a_value =
"il_".IL_INST_ID.
"_glo_".$this->
getId();
1129 if (!parent::delete())
1138 foreach ($terms as $term)
1141 $term_obj->delete();
1146 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTermReferences.php");
1151 $q =
"DELETE FROM glossary WHERE id = ".$ilDB->quote($this->
getId());
1165 include_once(
"./Modules/Glossary/classes/class.ilGlossaryExport.php");
1167 return $glo_exp->buildExportFile();
1179 include_once(
"./Modules/ScormAicc/classes/class.ilObjSAHSLearningModule.php");
1181 foreach ($sms as $sm)
1183 $lng->loadLanguageModule(
"content");
1184 $dep[$sm] = $lng->txt(
"glo_used_in_scorm");
1198 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1200 if (count($tax_ids) > 0)
1215 public function cloneObject($a_target_id,$a_copy_id = 0, $a_omit_tree =
false)
1219 $new_obj = parent::cloneObject($a_target_id,$a_copy_id, $a_omit_tree);
1225 if(!$cp_options->isRootNode($this->getRefId()))
1227 $new_obj->setOnline($this->
getOnline());
1239 include_once(
"./Services/Style/Content/classes/class.ilObjStyleSheet.php");
1243 $style_obj = $ilias->obj_factory->getInstanceByObjId($style_id);
1244 $new_id = $style_obj->ilClone();
1245 $new_obj->setStyleSheetId($new_id);
1253 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1255 $new_tax = $tax->cloneObject(0,0,
true);
1256 $map = $tax->getNodeMapping();
1266 include_once(
"./Services/Taxonomy/classes/class.ilTaxNodeAssignment.php");
1270 $new_tax_ass =
new ilTaxNodeAssignment(
"glo", $new_obj->getId(),
"term", $new_tax->getId());
1274 $term_mappings =
array();
1278 $term_mappings[$term[
"id"]] = $new_term_id;
1284 foreach ($assignmts as $a)
1286 if ($map[$a[
"node_id"]] > 0)
1288 $new_tax_ass->addAssignment($map[$a[
"node_id"]] ,$new_term_id);
1295 if (!empty($term_mappings))
1297 $cp_options->appendMapping($this->
getRefId().
'_glo_terms', (
array) $term_mappings);
1314 $set = $ilDB->query(
"SELECT id FROM glossary ".
1315 " WHERE ".$ilDB->in(
"id", $a_glo_ids,
false,
"integer").
1316 " AND is_online = ".$ilDB->quote(
"y",
"text")
1319 while ($rec = $ilDB->fetchAssoc($set))
1321 $glo_ids[] = $rec[
"id"];
1330 if($a_sub_type ==
"term")
1332 $lng->loadLanguageModule(
"glo");
1334 include_once
"Modules/Glossary/classes/class.ilGlossaryTerm.php";
1348 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
1353 $found_pages =
array();
1354 foreach($source_terms as $source_term)
1358 for ($j = 0; $j < count($source_defs); $j++)
1360 $def = $source_defs[$j];
1363 $c = $pg->getXMLContent();
1364 foreach ($terms as
$t)
1366 if (is_int(stripos($c, $t[
"term"])))
1368 $found_pages[$def[
"id"]][
"terms"][] =
$t;
1369 if (!is_object($found_pages[$def[
"id"]][
"page"]))
1371 $found_pages[$def[
"id"]][
"page"] = $pg;
1380 include_once(
"./Services/COPage/classes/class.ilPCParagraph.php");
1381 foreach ($found_pages as
$id => $fp)
static _createExportDirectory($a_obj_id, $a_export_type="xml", $a_obj_type="")
setStyleSheetId($a_style_id)
Set ID of assigned style sheet object.
read()
read data of content object
getAssignmentsOfItem($a_item_id)
Get assignments for item.
setAutoGlossaries($a_val)
Set auto glossaries.
static tf2yn($a_tf)
convert true/false to "y"/"n"
static getDefinitionList($a_term_id)
static
exportXMLGlossaryItems(&$a_xml_writer, $a_inst, &$expLog)
export page objects to xml (see ilias_co.dtd)
Class ilGlossaryPresentationGUI.
Taxonomy node <-> item assignment.
static getUsageOfObject($a_obj_id, $a_include_titles=false)
Get usage of object.
getDescription()
get description of glossary object
removeOfflineGlossaries($a_glo_ids)
Remove offline glossaries from obj id array.
static getAdvMDSubItemTitle($a_obj_id, $a_sub_type, $a_sub_id)
setShowTaxonomy($a_val)
Set show taxonomy.
static rCopy($a_sdir, $a_tdir, $preserveTimeAttributes=false)
Copies content of a directory $a_sdir recursively to a directory $a_tdir.
HTML export class for pages.
setPresentationMode($a_val)
Set presentation mode.
static getStyleSheetLocation($mode="output", $a_css_name="", $a_css_location="")
get full style sheet file name (path inclusive) of current user
static _getExportFiles($a_obj_id, $a_export_types="", $a_obj_type="")
Get Export Files for a repository object.
updateMetaData()
update meta data entry
exportHTMLFile($a_target_dir, $a_file_id)
export file object
getTermList($searchterm="", $a_letter="", $a_def="", $a_tax_node=0, $a_include_offline_childs=false, $a_add_amet_fields=false, array $a_amet_filter=null, $a_omit_virtual=false, $a_include_references=false)
Get term list.
Class ilObject Basic functions for all objects.
exportHTML($a_target_dir, $log)
export html package
createMetaData()
create meta data entry
getPublicExportFile($a_type)
get public export file
setDescription($a_description)
set description of glossary object
setPublicExportFile($a_type, $a_file)
specify public export file for type
static lookupObjectStyle($a_obj_id)
Lookup object style.
createExportDirectory($a_type="xml")
Creates export directory.
setActiveGlossaryMenu($a_act_glo_menu)
static _lookupStandard($a_id)
Lookup standard flag.
getFirstLetters($a_tax_node=0)
Get term list.
getTitle()
get title of glossary object
static writeStyleUsage($a_obj_id, $a_style_id)
Write style usage.
static autoLinkGlossariesPage($a_page, $a_terms)
Auto link glossary of whole page.
getExportDirectory($a_type="xml")
Get export directory of glossary.
exportXMLMetaData(&$a_xml_writer)
export content objects meta data to xml (see ilias_co.dtd)
getVirtualMode()
get glossary type (normal or virtual)
static _getInstance($a_copy_id)
Get instance of copy wizard options.
setVirtualMode($a_mode)
set glossary type (virtual: fixed/level/subtree, normal:none)
createImportDirectory()
creates data directory for import files (data_dir/glo_data/glo_<id>/import, depending on data directo...
getId()
get object id public
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
cloneObject($a_target_id, $a_copy_id=0, $a_omit_tree=false)
Clone glossary.
exportXMLMediaObjects(&$a_xml_writer, $a_inst, $a_target_dir, &$expLog)
export media objects to xml (see ilias_co.dtd)
static getFirstLetters($a_glo_id, $a_tax_node=0)
Get all terms for given set of glossary ids.
getTaxonomyId()
Get taxonomy.
__construct($a_id=0, $a_call_by_reference=true)
Constructor public.
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
static getTermList($a_glo_id, $searchterm="", $a_first_letter="", $a_def="", $a_tax_node=0, $a_add_amet_fields=false, array $a_amet_filter=null, $a_include_references=false)
Get all terms for given set of glossary ids.
special template class to simplify handling of ITX/PEAR
static collectFileItems($a_page, $a_domdoc)
Get all file items that are used within the page.
exportXML(&$a_xml_writer, $a_inst, $a_target_dir, &$expLog)
export object to xml (see ilias_co.dtd)
getXMLZip()
Get zipped xml file for glossary.
updateAutoGlossaries()
Update auto glossaries.
redirection script todo: (a better solution should control the processing via a xml file) ...
cloneMetaData($target_obj)
Copy meta data.
getPresentationMode()
Get presentation mode.
setActiveDownloads($a_down)
static getSyntaxStylePath()
get syntax style path
getSnippetLength()
Get snippet length.
static zip($a_dir, $a_file, $compress_content=false)
zips given directory/file into given zip.file
getType()
get object type public
static _getFilesOfObject($a_type, $a_id, $a_usage_hist_nr=0, $a_usage_lang="-")
get all files of an object
Glossary definition page object.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
getShowTaxonomy()
Get show taxonomy.
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
getImportDirectory()
get import directory of glossary
getAutoGlossaries()
Get auto glossaries.
getAllGlossaryIds($a_include_offline_childs=false)
Get all glossary ids.
create($a_upload=false)
create glossary object
autoLinkGlossaryTerms($a_glo_id)
Auto link glossary terms.
removeAutoGlossary($a_glo_id)
Remove auto glossary.
static _copyTerm($a_term_id, $a_glossary_id)
Copy a term to a glossary.
exportHTMLMOB($a_target_dir, &$a_glo_gui, $a_mob_id)
export media object to html
static lookup($a_id, $a_property)
Lookup glossary property.
static getScormModulesForGlossary($a_glo_id)
Get SCORM modules that assign a certain glossary.
static getDataDir()
get data directory (outside webspace)
getStyleSheetId()
Get ID of assigned style sheet object.
static saveUsage($a_tax_id, $a_obj_id)
Save Usage.
static getInstance()
Singleton: get instance.
modifyExportIdentifier($a_tag, $a_param, $a_value)
getRefId()
get reference id public
exportFileItems($a_target_dir, &$expLog)
export files of file itmes
static _getExportDirectory($a_obj_id, $a_type="xml", $a_obj_type="", $a_entity="")
Get export directory for an repository object.
deleteMetaData()
delete meta data entry
isVirtual()
returns true if glossary type is virtual (any mode)
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
Export class for content objects.
static getDeletionDependencies($a_obj_id)
Get deletion dependencies.
setTitle($a_title)
set title of glossary object
getExportFiles()
Get export files.
static yn2tf($a_yn)
convert "y"/"n" to true/false
setSnippetLength($a_val)
Set snippet length.
static delDir($a_dir, $a_clean_only=false)
removes a dir and all its content (subdirs and files) recursively
static getWebspaceDir($mode="filesystem")
get webspace directory
exportHTMLGlossaryTerms(&$a_glo_gui, $a_target_dir)
export glossary terms
static _lookGlossaryTerm($term_id)
get glossary term
static lookupAutoGlossaries($a_id)
Lookup auto glossaries.
static _lookupOnline($a_id)
check wether content object is online
static lookupSnippetLength($a_id)
Lookup snippet length.