21 if ($new_id = $a_mapping->getMapping(
'Services/Container',
'objs', $a_id)) {
23 #$newObj->setImportDirectory(dirname(rtrim($this->getImportDirectory(),'/'))); 26 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Called in non container mode');
33 if (!@file_exists($xml_file)) {
34 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Cannot find xml definition: ' . $xml_file);
39 $qtiresult = $newObj->importObject($xml_file);
41 $a_mapping->addMapping(
"Modules/SurveyQuestionPool",
"spl", $a_id, $newObj->getId());
getImportDirectory()
Get import directory.
Importer class for files.
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
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.