122 $this->log->debug(
"pg map entries: " . count($pg_map));
123 foreach ($pg_map as $pg_id) {
126 $this->log->debug(
"write parent id, pg id: " . $pg_id .
", lm id: " . $lm_id);
130 foreach ($a_mapping->
getMappingsOfEntity(
"Modules/LearningModule",
"lm_header_page") as $old_id => $dummy) {
131 $new_page_id = (
int) $a_mapping->
getMapping(
"Modules/LearningModule",
"pg", $old_id);
132 if ($new_page_id > 0) {
137 foreach ($a_mapping->
getMappingsOfEntity(
"Modules/LearningModule",
"lm_footer_page") as $old_id => $dummy) {
138 $new_page_id = (
int) $a_mapping->
getMapping(
"Modules/LearningModule",
"pg", $old_id);
139 if ($new_page_id > 0) {
148 foreach ($pages as $p) {
149 $id = explode(
":", $p);
150 if (count(
$id) == 3) {
153 $new_page->buildDom();
156 $updated = $new_page->resolveQuestionReferences($this->qtis);
160 if ($this->config->getTranslationImportMode()) {
161 $il = $new_page->resolveIntLinks($link_map);
168 $new_page->update(
false,
true);
188 foreach ($lm_map as $old_lm_id => $new_lm_id) {
194 foreach ($lm_map as $old_lm_id => $new_lm_id) {
195 $this->reading_time_manager->updateReadingTime($new_lm_id);
static writeFooterPage(int $a_lm_id, int $a_page_id)
static _writeParentId(string $a_parent_type, int $a_pg_id, int $a_par_id)
static writeHeaderPage(int $a_lm_id, int $a_page_id)
getMapping(string $a_comp, string $a_entity, string $a_old_id)
getMappingsOfEntity(string $a_comp, string $a_entity)
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
static _lookupContObjID(int $a_id)
get learning module id for lm object
static getInstance(string $a_parent_type, int $a_id=0, int $a_old_nr=0, string $a_lang="-")
Get page object instance.