4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
26 $pg_id = $a_mapping->getMapping(
"Services/COPage",
"pg", $a_id);
29 $id = explode(
":", $pg_id);
32 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
34 $new_page->setId($id[1]);
35 $new_page->setXMLContent($a_xml);
37 $new_page->createFromXML();
49 $pages = $a_mapping->getMappingsOfEntity(
"Services/COPage",
"pg");
50 $media_objects = $a_mapping->getMappingsOfEntity(
"Services/MediaObjects",
"mob");
51 $file_objects = $a_mapping->getMappingsOfEntity(
"Modules/File",
"file");
52 if (count($media_objects) > 0 || count($file_objects) > 0)
54 foreach ($pages as $p)
56 $id = explode(
":", $p);
59 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
61 $new_page->buildDom();
62 $med = $new_page->resolveMediaAliases($media_objects);
63 $fil = $new_page->resolveFileItems($file_objects);
67 $new_page->update(
false,
true);