4 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Node.php");
25 parent::ilSCORM2004Node($a_slm_object, $a_id);
32 function delete($a_delete_meta_data =
true)
34 $node_data = $this->tree->getNodeData($this->
getId());
36 $this->tree->deleteTree($node_data);
37 parent::deleteSeqInfo();
43 function create($a_upload =
false, $a_template =
false)
45 include_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004Item.php");
46 include_once(
"./Modules/Scorm2004/classes/seq_editor/class.ilSCORM2004Objective.php");
47 parent::create($a_upload);
59 $childs = $this->tree->getChilds($this->
getId());
60 foreach ($childs as $child)
65 if ($obj->getType() ==
"page")
67 $obj->delete($a_delete_meta_data);
72 parent::delete($a_delete_meta_data);
78 function copy($a_target_slm)
82 if ($this->
getSLMId() != $a_target_slm->getId())
84 $ass->setImportId(
"il__ass_".$this->
getId());
86 $ass->setSLMId($a_target_slm->getId());
87 $ass->setType($this->
getType());
90 $a_copied_nodes[$this->
getId()] = $ass->getId();
93 include_once(
"Services/MetaData/classes/class.ilMD.php");
95 $new_md = $md->cloneMD($a_target_slm->getId(), $ass->getId(), $this->
getType());
104 copy(
'./xml/ilias_co_3_7.dtd',$a_target_dir.
'/ilias_co_3_7.dtd');
105 copy(
'./Modules/Scorm2004/templates/xsl/sco.xsl',$a_target_dir.
'/sco.xsl');
111 $metadata_xml = $a_xml_writer->xmlDumpMem(
false);
112 $a_xml_writer->_XmlWriter;
113 $xsl = file_get_contents(
"./Modules/Scorm2004/templates/xsl/metadata.xsl");
114 $args = array(
'/_xml' => $metadata_xml ,
'/_xsl' => $xsl );
116 $output = xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args,NULL);
118 file_put_contents($a_target_dir.
'/indexMD.xml',$output);
122 $a_xml_writer->
xmlSetDtdDef(
"<!DOCTYPE ContentObject SYSTEM \"http://www.ilias.de/download/dtd/ilias_co_3_7.dtd\">");
125 $a_xml_writer->xmlSetGenCmt(
"Export of ILIAS Content Module ". $this->
getId().
" of installation ".$a_inst.
".");
128 $a_xml_writer->xmlHeader();
132 $a_xml_writer->xmlStartTag(
"ContentObject", array(
"Type"=>
"SCORM2004SCO"));
140 $this->
exportHTML($a_inst, $a_target_dir, $expLog);
144 copy(
'./Modules/Scorm2004/scripts/scorm_12.js',$a_target_dir.
'/js/scorm.js');
146 $a_xml_writer->xmlEndTag(
"ContentObject");
148 $a_xml_writer->xmlDumpFile($a_target_dir.
'/index.xml',
false);
150 $a_xml_writer->_XmlWriter;
155 $objectives_text =
"";
159 foreach ($tr_data as
$data)
161 $objectives_text.= $data->getObjectiveID();
163 $a_xml_writer->xmlStartTag(
"sco");
164 $a_xml_writer->xmlElement(
"objective", null, $objectives_text);
165 $a_xml_writer->xmlEndTag(
"sco");
166 $a_xml_writer->xmlDumpFile($a_target_dir.
'/sco.xml',
false);
167 $a_xml_writer->_XmlWriter;
172 function exportHTML($a_inst, $a_target_dir, &$expLog, $a_asset_type =
"sco",
176 $this->slm_object->prepareHTMLExporter($a_target_dir);
178 $a_asset_type, $a_one_file);
195 $a_xml_writer->
xmlStartTag(
"ContentObject", array(
"Type"=>
"SCORM2004SCO"));
197 $a_xml_writer->xmlEndTag(
"ContentObject");
198 include_once
'Services/Transformation/classes/class.ilXML2FO.php';
200 $xml2FO->setXSLTLocation(
'./Modules/Scorm2004/templates/xsl/contentobject2fo.xsl');
201 $xml2FO->setXMLString($a_xml_writer->xmlDumpMem());
202 $xml2FO->setXSLTParams(array (
'target_dir' => $a_target_dir));
203 $xml2FO->transform();
204 $fo_string = $xml2FO->getFOString();
205 $fo_xml = simplexml_load_string($fo_string);
206 $fo_ext = $fo_xml->xpath(
"//fo:declarations");
207 $fo_ext = $fo_ext[0];
209 include_once
"./Services/Utilities/classes/class.ilFileUtils.php";
213 foreach (
$results[
"file"] as $key => $value)
215 $e = $fo_ext->addChild(
"fox:embedded-file",
"",
"http://xml.apache.org/fop/extensions");
216 $e->addAttribute(
"src",
$results[path][$key].$value);
217 $e->addAttribute(
"name",$value);
218 $e->addAttribute(
"desc",
"");
221 $fo_string = $fo_xml->asXML();
222 $a_xml_writer->_XmlWriter;
235 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004PageNode.php";
236 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php";
238 $tree =
new ilTree($this->slm_id);
239 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
240 $tree->setTreeTablePK(
"slm_id");
241 foreach($tree->getSubTree($tree->getNodeData($this->getId()),
true,
'page') as $page)
245 include_once(
"./Services/COPage/classes/class.ilPCQuestion.php");
247 if (count($q_ids) > 0)
249 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
250 foreach ($q_ids as $q_id)
253 $qti_file = fopen($a_target_dir.
"/qti_".$q_id.
".xml",
"w");
254 fwrite($qti_file, $q_obj->toXML());
256 $x = file_get_contents($a_target_dir.
"/qti_".$q_id.
".xml");
257 $x = str_replace(
'<?xml version="1.0" encoding="utf-8"?>',
'', $x);
258 $a_xml_writer->appendXML($x);
269 $a_asset_type =
"sco", $a_one_file =
"", $a_sco_tpl = null)
273 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004PageGUI.php";
274 include_once
"./Modules/Scorm2004/classes/class.ilObjSCORM2004LearningModuleGUI.php";
275 include_once
"./Services/MetaData/classes/class.ilMD.php";
278 $tree =
new ilTree($this->slm_id);
279 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
280 $tree->setTreeTablePK(
"slm_id");
295 $sco_tpl =
new ilTemplate(
"tpl.sco.html",
true,
true,
"Modules/Scorm2004");
302 if ($mode !=
'pdf' && $a_one_file ==
"")
304 include_once(
"./Services/COPage/classes/class.ilCOPageHTMLExport.php");
306 $pg_exp->getPreparedMainTemplate($sco_tpl);
310 $sco_tpl->setCurrentBlock(
"init");
311 include_once(
"./Services/COPage/classes/class.ilPCQuestion.php");
312 $sco_tpl->setVariable(
"TXT_INIT_CODE",
314 $sco_tpl->parseCurrentBlock();
317 $styles = array(
"./css/yahoo/container.css",
318 "./css/question_handling.css");
319 foreach ($styles as $style)
321 $sco_tpl->setCurrentBlock(
"css_file");
322 $sco_tpl->setVariable(
"CSS_FILE", $style);
323 $sco_tpl->parseCurrentBlock();
327 $scripts = array(
"./js/scorm.js",
328 "./js/pager.js",
"./js/pure.js",
329 "./js/questions_".$this->
getId().
".js");
330 foreach ($scripts as $script)
332 $sco_tpl->setCurrentBlock(
"js_file");
333 $sco_tpl->setVariable(
"JS_FILE", $script);
334 $sco_tpl->parseCurrentBlock();
337 if ($a_asset_type !=
"entry_asset" && $a_asset_type !=
"final_asset")
339 self::renderNavigation($sco_tpl,
"./images/spacer.png", $lk);
342 $sco_tpl->touchBlock(
"finish");
345 $sco_tpl->setCurrentBlock(
"head");
346 $sco_tpl->setVariable(
"SCO_TITLE", $this->
getTitle());
347 $sco_tpl->parseCurrentBlock();
348 $sco_tpl->touchBlock(
"tail");
351 self::renderMetaPage($sco_tpl, $this, $a_asset_type, $mode);
352 if ($a_one_file !=
"")
354 fputs($a_one_file,
"<a name='sco".$this->
getId().
"'></a>");
355 fputs($a_one_file, $sco_tpl->get(
"meta_page"));
359 require_once
'./Modules/Scorm2004/classes/class.ilQuestionExporter.php';
366 include_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004ScoGUI.php");
367 $pages = $tree->getSubTree($tree->getNodeData($this->getId()),
true,
'page');
368 $sco_q_ids = array();
369 foreach($pages as $page)
373 $this->slm_object->getId());
376 $page_obj->setStyleId($this->slm_object->getStyleSheetId());
377 if (count($terms) > 1)
379 $page_obj->setGlossaryOverviewInfo(
383 $page_output = $page_obj->showPage(
"export");
386 $mob_ids = $page_obj->getSCORM2004Page()->collectMediaObjects(
false);
387 foreach($mob_ids as $mob_id)
389 $this->mob_ids[$mob_id] = $mob_id;
391 if($media_obj->hasFullscreenItem())
392 $media_obj->exportMediaFullscreen($a_target_dir, $page_obj->getPageObject());
396 $int_links = $page_obj->getPageObject()->getInternalLinks(
true);
397 include_once(
"./Services/Link/classes/class.ilInternalLink.php");
398 include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
399 if (is_array($int_links))
401 foreach ($int_links as $k => $e)
404 if ($e[
"Type"] ==
"GlossaryItem")
406 $karr = explode(
":", $k);
409 foreach ($dids as $did)
411 include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefPage.php");
414 $mob_ids = $def_pg->collectMediaObjects(
false);
415 foreach($mob_ids as $mob_id)
417 $this->mob_ids[$mob_id] = $mob_id;
420 if($media_obj->hasFullscreenItem())
421 $media_obj->exportMediaFullscreen($a_target_dir, $def_pg);
423 include_once(
"./Services/COPage/classes/class.ilPCFileList.php");
426 foreach($file_ids as $file_id)
428 $this->file_ids[$file_id] = $file_id;
436 include_once(
"./Services/COPage/classes/class.ilPCFileList.php");
438 foreach($file_ids as $file_id)
440 $this->file_ids[$file_id] = $file_id;
445 include_once(
"./Services/COPage/classes/class.ilPCQuestion.php");
447 foreach ($q_ids as $q_id)
449 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestionGUI.php");
451 $q_gui->outAdditionalOutput();
452 $html = $q_gui->getPreview(TRUE);
453 $page_output = preg_replace(
"/{{{{{Question;il__qst_".$q_id.
"}}}}}/i",$html,$page_output);
456 $sco_tpl->touchBlock(
"pdf_pg_break");
459 $sco_tpl->setCurrentBlock(
"page");
460 $sco_tpl->setVariable(
"PAGE", $page_output);
461 $sco_tpl->parseCurrentBlock();
464 if ($a_one_file !=
"")
466 include_once(
"./Services/COPage/classes/class.ilPCQuestion.php");
468 foreach ($q_ids as $i)
470 if (!in_array($i, $sco_q_ids))
481 $sco_tpl->setVariable(
"GLOSSARY_HTML",
485 if ($a_one_file ==
"")
487 $output = $sco_tpl->get();
491 $output = $sco_tpl->get(
"page");
495 $output = preg_replace(
"/<div class=\"ilc_page_title_PageTitle\">(.*?)<\/div>/i",
"<h2>$1</h2>",$output);
498 $output = preg_replace(
"/mobs\/mm_(\d+)\/([^\"]+)/i",
"./objects/il_".IL_INST_ID.
"_mob_$1/$2",$output);
499 $output = preg_replace(
"/\.\/files\/file_(\d+)\/([^\"]+)/i",
"./objects/il_".IL_INST_ID.
"_file_$1/$2",$output);
500 $output = preg_replace(
"/\.\/Services\/MediaObjects\/flash_mp3_player/i",
"./players",$output);
502 $output = preg_replace(
"/file=..\/..\/..\/.\//i",
"file=../",$output);
506 $output = preg_replace_callback(
"/href=\"&mob_id=(\d+)&pg_id=(\d+)\"/",array(get_class($this),
'fixFullscreeenLink'),$output);
508 $output = preg_replace_callback(
"/href=\"fullscreen_(\d+)\.html\"/",array(get_class($this),
'fixFullscreeenLink'),$output);
509 $output = preg_replace_callback(
"/{{{{{(Question;)(il__qst_[0-9]+)}}}}}/",array(get_class($this),
'insertQuestion'),$output);
512 $q_handling = file_get_contents(
'./Modules/Scorm2004/scripts/questions/question_handling.js');
514 copy(
"./Modules/Scorm2004/templates/default/question_handling.css",
515 $a_target_dir.
'/css/question_handling.css');
518 if ($a_one_file !=
"")
520 $output =
'<script type="text/javascript">'.ilQuestionExporter::questionsJS().
'</script>'.$output;
521 if (count($sco_q_ids) > 0)
523 $output.=
'<script type="text/javascript">';
524 foreach ($sco_q_ids as $i)
528 $output.=
"ilias.questions.showCorrectAnswers(".$i.
"); \n";
531 $output.=
'</script>';
537 $this->mob_ids[$mob_id] = $mob_id;
543 if ($a_one_file !=
"")
545 fputs($a_one_file, $output);
549 fputs(fopen($a_target_dir.
'/index.html',
'w+'),$output);
566 if ($a_spacer_img ==
"")
572 $a_lang = $lng->getLangKey();
575 $a_tpl->setCurrentBlock(
"ilLMNavigation");
576 $a_tpl->setVariable(
"TXT_PREVIOUS", $lng->txtlng(
"content",
'scplayer_previous', $a_lang));
577 $a_tpl->setVariable(
"SRC_SPACER", $a_spacer_img);
578 $a_tpl->setVariable(
"TXT_NEXT", $lng->txtlng(
"content",
'scplayer_next', $a_lang));
579 $a_tpl->parseCurrentBlock();
580 $a_tpl->setCurrentBlock(
"ilLMNavigation2");
581 $a_tpl->setVariable(
"TXT_PREVIOUS", $lng->txtlng(
"content",
'scplayer_previous', $a_lang));
582 $a_tpl->setVariable(
"SRC_SPACER", $a_spacer_img);
583 $a_tpl->setVariable(
"TXT_NEXT", $lng->txtlng(
"content",
'scplayer_next', $a_lang));
584 $a_tpl->parseCurrentBlock();
599 if ($a_sco->getType() !=
"sco" || $a_sco->getHideObjectivePage())
604 if ($a_asset_type !=
"entry_asset" && $a_asset_type !=
"final_asset")
606 $meta =
new ilMD($a_sco->getSLMId(), $a_sco->getId(), $a_sco->getType());
607 $desc_ids = $meta->
getGeneral()->getDescriptionIds();
608 $sco_description = $meta->getGeneral()->getDescription($desc_ids[0])->getDescription();
614 if ($a_asset_type !=
"entry_asset" && $a_asset_type !=
"final_asset")
616 $a_tpl->setCurrentBlock(
"title");
617 $a_tpl->setVariable(
"SCO_TITLE", $a_sco->getTitle());
618 $a_tpl->parseCurrentBlock();
624 $a_tpl->setCurrentBlock(
"pdf_title");
625 $a_tpl->setVariable(
"SCO_TITLE", $a_sco->getTitle());
626 $a_tpl->parseCurrentBlock();
627 $a_tpl->touchBlock(
"pdf_break");
631 if (trim($sco_description) !=
"")
633 $a_tpl->setCurrentBlock(
"sco_desc");
634 $a_tpl->setVariable(
"TXT_DESC", $lng->txt(
"description"));
635 include_once(
"./Services/COPage/classes/class.ilPCParagraph.php");
636 $a_tpl->setVariable(
"VAL_DESC", self::convertLists($sco_description));
637 $a_tpl->parseCurrentBlock();
640 if ($a_asset_type ==
"sco")
643 $objs = $a_sco->getObjectives();
644 if (count($objs) > 0)
646 foreach ($objs as $objective)
648 $a_tpl->setCurrentBlock(
"sco_obj");
649 $a_tpl->setVariable(
"VAL_OBJECTIVE", self::convertLists($objective->getObjectiveID()));
650 $a_tpl->parseCurrentBlock();
652 $a_tpl->setCurrentBlock(
"sco_objs");
653 $a_tpl->setVariable(
"TXT_OBJECTIVES", $lng->txt(
"sahs_objectives"));
654 $a_tpl->parseCurrentBlock();
657 $a_tpl->setCurrentBlock(
"meta_page");
658 $a_tpl->parseCurrentBlock();
670 include_once(
"./Services/COPage/classes/class.ilPCParagraph.php");
671 $a_text = nl2br($a_text);
672 $a_text = str_replace(array(
"\n",
"\r"),
"", $a_text);
673 $a_text = str_replace(
"<br>",
"<br />", $a_text);
675 $a_text = str_replace(
676 array(
"<SimpleBulletList>",
"</SimpleBulletList>",
677 "<SimpleListItem>",
"</SimpleListItem>",
678 "<SimpleNumberedList>",
"</SimpleNumberedList>" 680 array(
"<ul class='ilc_list_u_BulletedList'>",
"</ul>",
681 "<li class='ilc_list_item_StandardListItem'>",
"</li>",
682 "<ol class='ilc_list_o_NumberedList'>",
"</ol>" 691 if($media_obj->hasFullscreenItem())
693 return "href=\"./objects/il_".IL_INST_ID.
"_mob_".$matches[1].
"/fullscreen.html\"";
702 $ret = $q_exporter->exportQuestion($matches[2],
"./objects/",
"offline");
711 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004PageNode.php";
712 include_once
"./Modules/Scorm2004/classes/class.ilSCORM2004Page.php";
714 $tree =
new ilTree($this->slm_id);
715 $tree->setTableNames(
'sahs_sc13_tree',
'sahs_sc13_tree_node');
716 $tree->setTreeTablePK(
"slm_id");
718 $pages = $tree->getSubTree($tree->getNodeData($this->getId()),
true,
'page');
719 foreach($pages as $page)
721 $expLog->write(date(
"[y-m-d H:i:s] ").
"Page Object ".$page[
"obj_id"]);
725 $page_obj->exportXML($a_xml_writer,
"normal", $a_inst);
728 $mob_ids = $page_obj->getMediaObjectIds();
729 foreach($mob_ids as $mob_id)
731 $this->mob_ids[$mob_id] = $mob_id;
735 $file_ids = $page_obj->getFileItemIds();
736 foreach($file_ids as $file_id)
738 $this->file_ids[$file_id] = $file_id;
741 include_once(
"./Services/COPage/classes/class.ilPCQuestion.php");
743 if (count($q_ids) > 0)
745 include_once(
"./Modules/TestQuestionPool/classes/class.assQuestion.php");
746 foreach ($q_ids as $q_id)
750 if (is_object($q_obj))
752 $qti_file = fopen($a_target_dir.
"/qti_".$q_id.
".xml",
"w");
753 fwrite($qti_file, $q_obj->toXML());
766 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
767 include_once(
"./Modules/File/classes/class.ilObjFile.php");
768 $linked_mobs = array();
769 if(is_array($this->mob_ids ))
772 foreach ($this->mob_ids as $mob_id)
776 $expLog->write(date(
"[y-m-d H:i:s] ").
"Media Object ".$mob_id);
778 $media_obj->exportXML($a_xml_writer, $a_inst);
779 $lmobs = $media_obj->getLinkedMediaObjects($this->mob_ids);
780 $linked_mobs = array_merge($linked_mobs, $lmobs);
786 foreach ($linked_mobs as $mob_id)
790 $expLog->write(date(
"[y-m-d H:i:s] ").
"Media Object ".$mob_id);
792 $media_obj->exportXML($a_xml_writer, $a_inst);
797 if(is_array($this->file_ids))
798 foreach ($this->file_ids as $file_id)
800 $expLog->write(date(
"[y-m-d H:i:s] ").
"File Item ".$file_id);
801 $file_obj =
new ilObjFile($file_id,
false);
802 $file_obj->export($a_target_dir);
814 include_once(
"./Modules/File/classes/class.ilObjFile.php");
815 if(is_array($this->file_ids))
816 foreach ($this->file_ids as $file_id)
818 $expLog->write(date(
"[y-m-d H:i:s] ").
"File Item ".$file_id);
821 $file_obj =
new ilObjFile($file_id,
false);
822 $file_obj->export($a_target_dir);
827 $expLog->write(date(
"[y-m-d H:i:s] ").
"File Item not found, ID: ".$file_id);
831 include_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
832 $linked_mobs = array();
833 if(is_array($this->mob_ids ))
836 foreach ($this->mob_ids as $mob_id)
840 $expLog->write(date(
"[y-m-d H:i:s] ").
"Media Object ".$mob_id);
842 $media_obj->exportFiles($a_target_dir, $expLog);
843 $lmobs = $media_obj->getLinkedMediaObjects($this->mob_ids);
844 $linked_mobs = array_merge($linked_mobs, $lmobs);
851 foreach ($linked_mobs as $mob_id)
855 $expLog->write(date(
"[y-m-d H:i:s] ").
"Media Object ".$mob_id);
857 $media_obj->exportFiles($a_target_dir);
864 foreach ($this->q_media as $media) {
867 if (is_file ($media))
869 copy($media, $a_target_dir.
"/objects/".basename($media));
882 include_once(
"Services/MetaData/classes/class.ilMD2XML.php");
884 $md2xml->setExportMode(
true);
885 $md2xml->startExport();
886 $a_xml_writer->appendXML($md2xml->getXML());
893 require_once(
"./Modules/Scorm2004/classes/class.ilSCORM2004Export.php");
895 $export =
new ilSCORM2004Export($this);
896 foreach ($export->getSupportedExportTypes() as
$type)
898 $dir = $export->getExportDirectoryForType(
$type);
900 if (!@is_dir($dir) or !is_writeable($dir))
908 while ($entry = $cdir->read())
910 if ($entry !=
"." and
913 ereg(
"^[0-9]{10}_{2}[0-9]+_{2}(".$this->
getType().
"_)".$this->
getId().
"+\.zip\$", $entry) or
914 ereg(
"^[0-9]{10}_{2}[0-9]+_{2}(".$this->
getType().
"_)".$this->
getId().
"+\.pdf\$", $entry) or
915 ereg(
"^[0-9]{10}_{2}[0-9]+_{2}(".$this->
getType().
"_)".$this->
getId().
"+\.iso\$", $entry)
918 $file[$entry.$type] = array(
"type" =>
$type,
"file" => $entry,
919 "size" => filesize($dir.
"/".$entry));
941 include_once(
"./Modules/Glossary/classes/class.ilGlossaryTerm.php");
942 $childs = $this->tree->getChilds($this->
getId());
944 foreach ($childs as $c)
948 foreach ($links as $l)
950 if ($l[
"type"] ==
"git" && (
int) $l[
"inst"] == 0 && !isset($ids[$l[
"id"]]))
_getTargetsOfSource($a_source_type, $a_source_id, $a_source_lang="-")
Get all targets of a source object (e.g., a page)
exportPDF($a_inst, $a_target_dir, &$expLog)
static getJSTextInitCode($a_lang)
Get js txt init code.
Class ilSCORM2004Condition.
static _instanciateQuestion($question_id)
Creates an instance of a question with a given question id.
Scorm 2004 Question Exporter.
static _getQuestionIdsForPage($a_parent_type, $a_page_id, $a_lang="-")
Get all questions of a page.
getDefinitionList($a_term_id)
static
xmlSetDtdDef($dtdDef)
Sets dtd definition.
HTML export class for pages.
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
xmlStartTag($tag, $attrs=NULL, $empty=FALSE, $encode=TRUE, $escape=TRUE)
Writes a starttag.
__construct($a_slm_object, $a_id=0)
Constructor.
static renderMetaPage($a_tpl, $a_sco, $a_asset_type="", $mode="")
Render meta page (description/objectives at beginning)
create($a_upload=false, $a_template=false)
Create asset.
static convertLists($a_text)
Convert * and # to lists.
static getGlossaryOverviewId()
Get sco glossary overlay id.
fixFullscreeenLink($matches)
_extractObjIdOfTarget($a_target)
Extract object id out of target.
exportFileItems($a_target_dir, &$expLog)
export files of file itmes
getSLMId()
Get ID of parent Scorm Learning Module Object.
exportHTML($a_inst, $a_target_dir, &$expLog, $a_asset_type="sco", $a_one_file="")
getGlossaryTermIds()
Get glossary term ids in sco.
exportHTMLPageObjects($a_inst, $a_target_dir, &$expLog, $mode, $a_asset_type="sco", $a_one_file="", $a_sco_tpl=null)
Export HTML pages of SCO.
static input2xmlReplaceLists($a_text)
Converts xml from DB to output in edit textarea.
static getInstance($a_slm_object, $a_id=0, $a_halt=true)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
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.
& _getQuestionGUI($question_type, $question_id=-1)
Creates a question gui representation and returns the alias to the question gui note: please do not u...
exportXMLMediaObjects(&$a_xml_writer, $a_inst, $a_target_dir, &$expLog)
setPresentationTitle($a_title="")
delete_rec($a_delete_meta_data=true)
Delete Nested Page Objects.
getDescription()
Get description.
Glossary definition page object.
exportPDFPrepareXmlNFiles($a_inst, $a_target_dir, &$expLog, &$a_xml_writer)
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
static _lookupType($a_id, $a_reference=false)
lookup object type
static _instantiateQuestion($question_id)
static makeDir($a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
exportHTML4PDF($a_inst, $a_target_dir, &$expLog)
static renderNavigation($a_tpl, $a_spacer_img="", $a_lang="")
Render navigation.
exportXMLPageObjects($a_target_dir, &$a_xml_writer, $a_inst, &$expLog)
getAffectiveLocalization($a_id)
Get affective localization.
Class ilSCORM2004Page GUI class.
recursive_dirscan($dir, &$arr)
Recursively scans a given directory and writes path and filename into referenced array.
static getGlossaryHTML($a_sco)
Get glossary html (only in export mode)
copy($a_target_slm)
Copy sco.
setType($a_type)
Set type.
static _lookGlossaryTerm($term_id)
get glossary term
exportScorm($a_inst, $a_target_dir, $ver, &$expLog)
exportXMLMetaData(&$a_xml_writer)
static questionsJS(array $a_qids=null)
static initExport()
Init export.