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());
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Importer class for files.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
parseXmlFileNames()
Create qti and xml file name.
getImportDirectory()
Get import directory.