29 public function init(): void
32 $this->ds->setDSPrefix(
"ds");
34 $this->config = $this->
getImport()->getConfig(
"components/ILIAS/MediaPool");
35 if ($this->config->getTranslationImportMode()) {
36 $this->ds->setTranslationImportMode(
37 $this->config->getTranslationMep(),
38 $this->config->getTranslationLang()
40 $cop_config = $this->
getImport()->getConfig(
"components/ILIAS/COPage");
41 $cop_config->setUpdateIfExists(
true);
42 $cop_config->setForceLanguage($this->config->getTranslationLang());
43 $cop_config->setReuseOriginallyExportedMedia(
true);
44 $cop_config->setSkipInternalLinkResolve(
true);
46 $mob_config = $this->
getImport()->getConfig(
"components/ILIAS/MediaObjects");
47 $mob_config->setUsePreviousImportIds(
true);
71 foreach ($pg_map as $pg_id) {
73 $mep_id = current($mep_id);
static _writeParentId(string $a_parent_type, int $a_pg_id, int $a_par_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getMappingsOfEntity(string $a_comp, string $a_entity)
Import configuration class parent class.