32 if ($new_id = $a_mapping->getMapping(
'Services/Container',
'objs', $a_id)) {
36 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Called in non container mode');
42 if (!file_exists($xml_file)) {
43 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Cannot find xml definition: ' . $xml_file);
48 $newObj->importObject($xml_file);
49 $a_mapping->addMapping(
50 "Modules/SurveyQuestionPool",
59 $basename = basename($this->getImportDirectory());
60 return $this->getImportDirectory() .
'/' . $basename .
'.xml';
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
importXmlRepresentation(string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...