4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
24 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_id))
27 #$newObj->setImportDirectory(dirname(rtrim($this->getImportDirectory(),'/')));
32 $GLOBALS[
'ilLog']->write(__METHOD__.
': Called in non container mode');
37 include_once
"./Services/Survey/classes/class.SurveyImportParser.php";
38 include_once
"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php";
42 if(!@file_exists($xml_file))
44 $GLOBALS[
'ilLog']->write(__METHOD__.
': Cannot find xml definition: '. $xml_file);
48 $pool_ref = $a_mapping->getMapping(
'Services/Container',
'spl',$newObj->getId());
53 $import->setSurveyObject($newObj);
54 $import->startParsing();
57 if($spl->getType() ==
'spl')
62 $a_mapping->addMapping(
"Modules/Survey",
"svy", $a_id, $newObj->getId());
75 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.$this->getImportDirectory());