4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
23 if ($a_entity ==
"glo")
26 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_id))
31 $GLOBALS[
'ilLog']->write(__METHOD__.
': Using XML file '.$xml_file);
34 else if ($new_id = $a_mapping->getMapping(
'Modules/Glossary',
'glo',
"new_id"))
39 $GLOBALS[
'ilLog']->write(__METHOD__.
': Using XML file '.$xml_file);
44 $GLOBALS[
'ilLog']->write(__METHOD__.
': Called in non container mode');
49 if(!file_exists($xml_file))
51 $GLOBALS[
'ilLog']->write(__METHOD__.
': ERROR Cannot find '.$xml_file);
55 include_once
'./Modules/LearningModule/classes/class.ilContObjParser.php';
62 $contParser->startParsing();
66 $term_map = $contParser->getGlossaryTermMap();
67 foreach ($term_map as $k => $v)
69 $a_mapping->addMapping(
"Services/Taxonomy",
"tax_item",
73 $a_mapping->addMapping(
"Modules/Glossary",
"glo", $a_id, $newObj->getId());
75 $this->current_glo = $newObj;
89 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
90 $maps = $a_mapping->getMappingsOfEntity(
"Modules/Glossary",
"glo");
91 foreach ($maps as $old => $new)
93 if ($old !=
"new_id" && (
int) $old > 0)
96 $new_tax_ids = $a_mapping->getMapping(
"Services/Taxonomy",
"tax_usage_of_obj", $old);
97 $tax_ids = explode(
":", $new_tax_ids);
98 foreach ($tax_ids as $tid)