4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
24 if ($new_id = $a_mapping->getMapping(
'Services/Container',
'objs', $a_id)) {
26 #$newObj->setImportDirectory(dirname(rtrim($this->getImportDirectory(),'/'))); 29 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Called in non container mode');
34 include_once
"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php";
38 if (!@file_exists($xml_file)) {
39 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Cannot find xml definition: ' . $xml_file);
44 $qtiresult = $newObj->importObject($xml_file);
46 $a_mapping->addMapping(
"Modules/SurveyQuestionPool",
"spl", $a_id, $newObj->getId());
getImportDirectory()
Get import directory.
Importer class for files.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
parseXmlFileNames()
Create qti and xml file name.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.