4include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
 
   37        include_once 
'./Modules/Course/classes/class.ilCourseXMLParser.php';
 
   38        include_once 
'./Modules/Course/classes/class.ilObjCourse.php';
 
   41        if ($new_id = $a_mapping->getMapping(
'Services/Container', 
'objs', $a_id)) {
 
   44        #$this->course = ilObjectFactory::getInstanceByObjId($new_id,false); 
   47        elseif ($new_id = $a_mapping->getMapping(
'Services/Container', 
'refs', 0)) {
 
   51            $this->course->create(
true);
 
   54        if ($a_entity == self::ENTITY_OBJECTIVE) {
 
   59            include_once 
'./Modules/Course/classes/Objectives/class.ilLOXmlParser.php';
 
   61            $parser->setMapping($a_mapping);
 
   70            $a_mapping->addMapping(
'Modules/Course', 
'crs', $a_id, $this->course->getId());
 
   72            $GLOBALS[
'ilLog']->write(__METHOD__ . 
': Parsing failed with message, "' . $e->getMessage() . 
'".');
 
   73        } 
catch (Exception $e) {
 
   74            $GLOBALS[
'ilLog']->write(__METHOD__ . 
': Parsing failed with message, "' . $e->getMessage() . 
'".');
 
   86        foreach ($this->final_processing_info as 
$info) {
 
   88            include_once 
'./Modules/Course/classes/Objectives/class.ilLOXmlParser.php';
 
   91            $parser->parseObjectDependencies();
 
  101        $this->final_processing_info[] = array(
 
  102            'course' => $a_course,
 
  103            'entity' => $a_entity,
 
An exception for terminatinating execution or to throw for unit testing.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
afterContainerImportProcessing(\ilImportMapping $mapping)
addFinalProcessingInfo($a_course, $a_entity, $a_xml)
Add information for final processing.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
static _getAllReferences($a_id)
get all reference ids of object
SaxParserException thrown by ilSaxParser if property throwException is set.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.