4 include_once(
"./Services/Export/classes/class.ilXmlExporter.php");
23 include_once(
"./Modules/LearningModule/classes/class.ilLearningModuleDataSet.php");
25 $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
26 $this->ds->setDSPrefix(
"ds");
27 $this->config = $this->
getExport()->getConfig(
"Modules/LearningModule");
28 if ($this->config->getMasterLanguageOnly())
30 $conf = $this->
getExport()->getConfig(
"Services/COPage");
31 $conf->setMasterLanguageOnly(
true);
32 $this->ds->setMasterLanguageOnly(
true);
46 include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
47 include_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
51 if ($a_entity ==
"lm")
56 foreach ($a_ids as $id)
58 $md_ids[] = $id .
":0:lm";
62 foreach ($a_ids as $id)
65 foreach ($chaps as $c)
67 $md_ids[] = $id .
":" . $c[
"obj_id"] .
":st";
73 foreach ($a_ids as $id)
76 foreach ($pages as $p)
78 $pg_ids[] =
"lm:" . $p[
"obj_id"];
79 $md_ids[] = $id .
":" . $p[
"obj_id"] .
":pg";
87 "component" =>
"Services/COPage",
91 "component" =>
"Services/MetaData",
96 if (!$this->config->getMasterLanguageOnly())
99 "component" =>
"Services/Object",
100 "entity" =>
"transl",
105 foreach ($a_ids as $id)
107 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
111 "component" =>
"Services/Help",
113 "ids" =>
array($id));
118 foreach ($a_ids as $id)
120 include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
124 "component" =>
"Services/Style",
149 include_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
151 foreach ($pages as $p)
154 if (!$this->config->getMasterLanguageOnly())
157 foreach ($trans as
$t)
165 foreach ($langs as
$l)
168 include_once(
"./Services/COPage/classes/class.ilPCQuestion.php");
171 $q_ids[$q_id] = $q_id;
175 if (count($q_ids) > 0)
177 $dir = $this->
getExport()->export_run_dir;
178 $qti_file = fopen($dir.
"/qti.xml",
"w");
179 include_once(
"./Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php");
181 fwrite($qti_file, $pool->questionsToXML($q_ids));
185 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id,
"",
true,
true);
206 "namespace" =>
"http://www.ilias.de/Modules/LearningModule/lm/5_1",
207 "xsd_file" =>
"ilias_lm_5_1.xsd",
208 "uses_dataset" =>
true,
212 "namespace" =>
"http://www.ilias.de/Modules/LearningModule/lm/4_1",
213 "xsd_file" =>
"ilias_lm_4_1.xsd",
214 "uses_dataset" =>
false,
static _lookupStyleSheetId($a_cont_obj_id)
lookup style sheet ID
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
static _getQuestionIdsForPage($a_parent_type, $a_page_id, $a_lang="-")
Get all questions of a page.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
Create styles array
The data for the language used.
static isOnlineHelpModule($a_id, $a_as_obj_id=false)
Is module an online module.
LearningModule Data set class.
static lookupTranslations($a_parent_type, $a_id)
Lookup translations.
Exporter class for html learning modules.
static getObjectList($lm_id, $type="")
static
static getPageList($lm_id)
static
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.