4include_once(
"./Services/Export/classes/class.ilXmlExporter.php");
 
   26        include_once(
"./Modules/LearningModule/classes/class.ilLearningModuleDataSet.php");
 
   28        $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
 
   29        $this->ds->setDSPrefix(
"ds");
 
   30        $this->config = $this->
getExport()->getConfig(
"Modules/LearningModule");
 
   31        if ($this->config->getMasterLanguageOnly()) {
 
   32            $conf = $this->
getExport()->getConfig(
"Services/COPage");
 
   33            $conf->setMasterLanguageOnly(
true, $this->config->getIncludeMedia());
 
   34            $this->ds->setMasterLanguageOnly(
true);
 
   48        include_once(
"./Modules/LearningModule/classes/class.ilLMObject.php");
 
   49        include_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
 
   53        if ($a_entity == 
"lm") {
 
   57            foreach ($a_ids as 
$id) {
 
   58                $md_ids[] = 
$id . 
":0:lm";
 
   62            foreach ($a_ids as 
$id) {
 
   64                foreach ($chaps as $c) {
 
   65                    $md_ids[] = 
$id . 
":" . $c[
"obj_id"] . 
":st";
 
   71            foreach ($a_ids as 
$id) {
 
   73                foreach ($pages as $p) {
 
   74                    $pg_ids[] = 
"lm:" . $p[
"obj_id"];
 
   75                    $md_ids[] = 
$id . 
":" . $p[
"obj_id"] . 
":pg";
 
   83                    "component" => 
"Services/COPage",
 
   87                    "component" => 
"Services/MetaData",
 
   92            if (!$this->config->getMasterLanguageOnly()) {
 
   94                    "component" => 
"Services/Object",
 
  100            foreach ($a_ids as 
$id) {
 
  101                include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
 
  104                        "component" => 
"Services/Help",
 
  106                        "ids" => array(
$id));
 
  111            foreach ($a_ids as 
$id) {
 
  112                include_once(
"./Modules/LearningModule/classes/class.ilObjContentObject.php");
 
  115                        "component" => 
"Services/Style",
 
  140        include_once(
"./Modules/LearningModule/classes/class.ilLMPageObject.php");
 
  142        foreach ($pages as $p) {
 
  144            if (!$this->config->getMasterLanguageOnly()) {
 
  146                foreach ($trans as 
$t) {
 
  152            foreach ($langs as 
$l) {
 
  154                include_once(
"./Services/COPage/classes/class.ilPCQuestion.php");
 
  156                    $q_ids[$q_id] = $q_id;
 
  160        if (count($q_ids) > 0) {
 
  161            $dir = $this->
getExport()->export_run_dir;
 
  162            $qti_file = fopen($dir . 
"/qti.xml", 
"w");
 
  163            include_once(
"./Modules/TestQuestionPool/classes/class.ilObjQuestionPool.php");
 
  165            fwrite($qti_file, $pool->questionsToXML($q_ids));
 
  169        return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, 
"", 
true, 
true);
 
  190                "namespace" => 
"http://www.ilias.de/Modules/LearningModule/lm/5_1",
 
  191                "xsd_file" => 
"ilias_lm_5_1.xsd",
 
  192                "uses_dataset" => 
true,
 
  196                "namespace" => 
"http://www.ilias.de/Modules/LearningModule/lm/4_1",
 
  197                "xsd_file" => 
"ilias_lm_4_1.xsd",
 
  198                "uses_dataset" => 
false,
 
An exception for terminatinating execution or to throw for unit testing.
static getObjectList($lm_id, $type="")
static
static getPageList($lm_id)
static
LearningModule Data set class.
Exporter class for html learning modules.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
Get tail dependencies.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
static _lookupStyleSheetId($a_cont_obj_id)
lookup style sheet ID
static isOnlineHelpModule($a_id, $a_as_obj_id=false)
Is module an online module.
static _getQuestionIdsForPage($a_parent_type, $a_page_id, $a_lang="-")
Get all questions of a page.
static lookupTranslations($a_parent_type, $a_id)
Lookup translations.
if(!array_key_exists('StateId', $_REQUEST)) $id