30     public function init(): void
    35         $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
    36         $this->ds->setDSPrefix(
"ds");
    37         $this->config = $this->
getExport()->getConfig(
"Modules/LearningModule");
    38         if ($this->config->getMasterLanguageOnly()) {
    39             $conf = $this->
getExport()->getConfig(
"Services/COPage");
    40             $conf->setMasterLanguageOnly(
true, $this->config->getIncludeMedia());
    41             $this->ds->setMasterLanguageOnly(
true);
    43         $this->content_style_domain = $DIC->contentStyle()
    49         string $a_target_release,
    54         if ($a_entity == 
"lm") {
    58             foreach ($a_ids as 
$id) {
    59                 $md_ids[] = $id . 
":0:lm";
    63             foreach ($a_ids as $id) {
    65                 foreach ($chaps as 
$c) {
    66                     $md_ids[] = $id . 
":" . $c[
"obj_id"] . 
":st";
    72             foreach ($a_ids as $id) {
    74                 foreach ($pages as $p) {
    75                     $pg_ids[] = 
"lm:" . $p[
"obj_id"];
    76                     $md_ids[] = $id . 
":" . $p[
"obj_id"] . 
":pg";
    84                     "component" => 
"Services/COPage",
    88                     "component" => 
"Services/MetaData",
    93             if (!$this->config->getMasterLanguageOnly()) {
    95                     "component" => 
"Services/Object",
    99                     "component" => 
"Services/Object",
   100                     "entity" => 
"transl_entry",
   104                 "component" => 
"Services/Object",
   109                 "component" => 
"Services/Object",
   110                 "entity" => 
"service_settings",
   114             foreach ($a_ids as $id) {
   117                         "component" => 
"Services/Help",
   119                         "ids" => array($id));
   124             foreach ($a_ids as $id) {
   125                 $style_id = $this->content_style_domain->styleForObjId($id)->getStyleId();
   128                         "component" => 
"Services/Style",
   141         string $a_schema_version,
   147         foreach ($pages as $p) {
   149             if (!$this->config->getMasterLanguageOnly()) {
   151                 foreach ($trans as $t) {
   157             foreach ($langs as $l) {
   160                     $q_ids[$q_id] = $q_id;
   164         if (count($q_ids) > 0) {
   165             $dir = $this->
getExport()->export_run_dir;
   166             $qti_file = fopen($dir . 
"/qti.xml", 
"w");
   168             fwrite($qti_file, $pool->questionsToXML($q_ids));
   172         return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], 
"", 
true, 
true);
   180                 "namespace" => 
"https://www.ilias.de/Modules/LearningModule/lm/8",
   181                 "xsd_file" => 
"ilias_lm_8.xsd",
   182                 "uses_dataset" => 
true,
   186                 "namespace" => 
"https://www.ilias.de/Modules/LearningModule/lm/5_4",
   187                 "xsd_file" => 
"ilias_lm_5_4.xsd",
   188                 "uses_dataset" => 
true,
   192                 "namespace" => 
"https://www.ilias.de/Modules/LearningModule/lm/5_1",
   193                 "xsd_file" => 
"ilias_lm_5_1.xsd",
   194                 "uses_dataset" => 
true,
   198                 "namespace" => 
"https://www.ilias.de/Modules/LearningModule/lm/4_1",
   199                 "xsd_file" => 
"ilias_lm_4_1.xsd",
   200                 "uses_dataset" => 
false,
 
static getObjectList(int $lm_id, string $type="")
 
static lookupTranslations(string $a_parent_type, int $a_id)
Lookup translations. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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. 
 
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.