30     public function init(): void
    35         $this->ds->initByExporter($this);
    36         $this->ds->setDSPrefix(
"ds");
    38         $config = $this->
getExport()->getExportConfigs()->getElementByComponent(
'components/ILIAS/LearningModule');
    40         if ($this->config->getMasterLanguageOnly()) {
    42             $co_config = $this->
getExport()->getExportConfigs()->getElementByComponent(
'components/ILIAS/COPage');
    44             $conf->setMasterLanguageOnly(
true, $this->config->getIncludeMedia());
    45             $this->ds->setMasterLanguageOnly(
true);
    47         $this->content_style_domain = $DIC->contentStyle()
    53         string $a_target_release,
    58         if ($a_entity == 
"lm") {
    62             foreach ($a_ids as 
$id) {
    63                 $md_ids[] = $id . 
":0:lm";
    67             foreach ($a_ids as $id) {
    69                 foreach ($chaps as 
$c) {
    70                     $md_ids[] = $id . 
":" . $c[
"obj_id"] . 
":st";
    76             foreach ($a_ids as $id) {
    78                 foreach ($pages as $p) {
    79                     $pg_ids[] = 
"lm:" . $p[
"obj_id"];
    80                     $md_ids[] = $id . 
":" . $p[
"obj_id"] . 
":pg";
    88                     "component" => 
"components/ILIAS/COPage",
    92                     "component" => 
"components/ILIAS/MetaData",
    97             if (!$this->config->getMasterLanguageOnly()) {
    99                     "component" => 
"components/ILIAS/ILIASObject",
   100                     "entity" => 
"transl",
   103                     "component" => 
"components/ILIAS/ILIASObject",
   104                     "entity" => 
"transl_entry",
   108                 "component" => 
"components/ILIAS/ILIASObject",
   113                 "component" => 
"components/ILIAS/ILIASObject",
   114                 "entity" => 
"service_settings",
   118             foreach ($a_ids as $id) {
   121                         "component" => 
"components/ILIAS/Help",
   123                         "ids" => array($id));
   128             foreach ($a_ids as $id) {
   129                 $style_id = $this->content_style_domain->styleForObjId($id)->getExportStyleId();
   131                     "component" => 
"components/ILIAS/Style",
   143         string $a_schema_version,
   149         foreach ($pages as $p) {
   151             if (!$this->config->getMasterLanguageOnly()) {
   153                 foreach ($trans as $t) {
   159             foreach ($langs as $l) {
   162                     $q_ids[$q_id] = $q_id;
   166         if (count($q_ids) > 0) {
   167             $dir = $this->
getExport()->export_run_dir;
   168             $qti_file = fopen($dir . 
"/qti.xml", 
"w");
   170             fwrite($qti_file, $pool->questionsToXML($q_ids));
   174         return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], 
"", 
true, 
true);
   182                 "namespace" => 
"https://www.ilias.de/Modules/LearningModule/lm/8",
   183                 "xsd_file" => 
"ilias_lm_8.xsd",
   184                 "uses_dataset" => 
true,
   188                 "namespace" => 
"https://www.ilias.de/Modules/LearningModule/lm/5_4",
   189                 "xsd_file" => 
"ilias_lm_5_4.xsd",
   190                 "uses_dataset" => 
true,
   194                 "namespace" => 
"https://www.ilias.de/Modules/LearningModule/lm/5_1",
   195                 "xsd_file" => 
"ilias_lm_5_1.xsd",
   196                 "uses_dataset" => 
true,
   200                 "namespace" => 
"https://www.ilias.de/Modules/LearningModule/lm/4_1",
   201                 "xsd_file" => 
"ilias_lm_4_1.xsd",
   202                 "uses_dataset" => 
false,
 
static getObjectList(int $lm_id, string $type="")
 
static lookupTranslations(string $a_parent_type, int $a_id)
Lookup translations. 
 
ilLearningModuleExportConfig $config
 
getXmlRepresentation(string $a_entity, string $a_schema_version, string $a_id)
 
ILIAS Style Content DomainService $content_style_domain
 
getXmlExportTailDependencies(string $a_entity, string $a_target_release, array $a_ids)
 
LearningModule Data set class. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static getPageList(int $lm_id)
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
ilLearningModuleDataSet $ds
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getValidSchemaVersions(string $a_entity)
 
static _getQuestionIdsForPage(string $a_parent_type, int $a_page_id, string $a_lang="-")
 
static isOnlineHelpModule(int $a_id, bool $a_as_obj_id=false)
Is module an online module.