4 include_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))
45 #$this->course = ilObjectFactory::getInstanceByObjId($new_id,false); 48 elseif($new_id = $a_mapping->getMapping(
'Services/Container',
'refs',0))
54 $this->course =
new ilObjCourse();
55 $this->course->create(
true);
58 if($a_entity == self::ENTITY_OBJECTIVE)
64 include_once
'./Modules/Course/classes/Objectives/class.ilLOXmlParser.php';
66 $parser->setMapping($a_mapping);
76 $a_mapping->addMapping(
'Modules/Course',
'crs',$a_id,$this->course->getId());
80 $GLOBALS[
'ilLog']->write(__METHOD__.
': Parsing failed with message, "'.$e->getMessage().
'".');
84 $GLOBALS[
'ilLog']->write(__METHOD__.
': Parsing failed with message, "'.$e->getMessage().
'".');
96 foreach($this->final_processing_info as
$info)
99 include_once
'./Modules/Course/classes/Objectives/class.ilLOXmlParser.php';
102 $parser->parseObjectDependencies();
112 $this->final_processing_info[] =
array(
113 'course' => $a_course,
114 'entity' => $a_entity,
afterContainerImportProcessing(\ilImportMapping $mapping)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
addFinalProcessingInfo($a_course, $a_entity, $a_xml)
Add information for final processing.
SaxParserException thrown by ilSaxParser if property throwException is set.
static _getAllReferences($a_id)
get all reference ids of object
Create styles array
The data for the language used.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.