4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
24 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_id))
32 $GLOBALS[
'ilLog']->write(__METHOD__.
': Called in non container mode');
38 if(!@file_exists($xml_file))
40 $GLOBALS[
'ilLog']->write(__METHOD__.
': Cannot find xml definition: '. $xml_file);
43 if(!@file_exists($qti_file))
45 $GLOBALS[
'ilLog']->write(__METHOD__.
': Cannot find xml definition: '. $qti_file);
52 $newObj->mark_schema->flush();
55 include_once
"./Services/QTI/classes/class.ilQTIParser.php";
57 $qtiParser->setTestObject($newObj);
58 $result = $qtiParser->startParsing();
62 include_once (
"./Modules/LearningModule/classes/class.ilContObjParser.php");
64 $contParser->setQuestionMapping($qtiParser->getImportMapping());
65 $contParser->startParsing();
67 $a_mapping->addMapping(
"Modules/Test",
"tst", $a_id, $newObj->getId());
77 $GLOBALS[
'ilLog']->write(__METHOD__.
': '.$this->getImportDirectory());
84 return array($xml,$qti);