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
"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php";
41 if(!@file_exists($xml_file))
43 $GLOBALS[
'ilLog']->write(__METHOD__.
': Cannot find xml definition: '. $xml_file);
48 $qtiresult = $newObj->importObject($xml_file);
50 $a_mapping->addMapping(
"Modules/SurveyQuestionPool",
"spl", $a_id, $newObj->getId());
62 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.$this->getImportDirectory());