4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
20 include_once(
"./Services/COPage/classes/class.ilCOPageDataSet.php");
22 $this->ds->setDSPrefix(
"ds");
35 if ($a_entity ==
"pgtp")
37 include_once(
"./Services/DataSet/classes/class.ilDataSetImportParser.php");
39 $a_xml, $this->ds, $a_mapping);
42 if ($a_entity ==
"pg")
44 $pg_id = $a_mapping->getMapping(
"Services/COPage",
"pg", $a_id);
48 $id = explode(
":", $pg_id);
51 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
53 $new_page->setId($id[1]);
54 $new_page->setXMLContent($a_xml);
56 $new_page->createFromXML();
69 $pages = $a_mapping->getMappingsOfEntity(
"Services/COPage",
"pg");
70 $media_objects = $a_mapping->getMappingsOfEntity(
"Services/MediaObjects",
"mob");
71 $file_objects = $a_mapping->getMappingsOfEntity(
"Modules/File",
"file");
72 if (count($media_objects) > 0 || count($file_objects) > 0)
74 foreach ($pages as $p)
76 $id = explode(
":", $p);
79 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
83 $new_page->buildDom();
84 $med = $new_page->resolveMediaAliases($media_objects);
85 $fil = $new_page->resolveFileItems($file_objects);
89 $new_page->update(
false,
true);