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)) {
44 #$this->course = ilObjectFactory::getInstanceByObjId($new_id,false); 47 elseif ($new_id = $a_mapping->getMapping(
'Services/Container',
'refs', 0)) {
50 $this->course =
new ilObjCourse();
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);
72 $this->course->setOfflineStatus(
true);
73 $this->course->update();
75 $a_mapping->addMapping(
'Modules/Course',
'crs', $a_id, $this->course->getId());
77 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Parsing failed with message, "' . $e->getMessage() .
'".');
79 $GLOBALS[
'DIC'][
'ilLog']->write(__METHOD__ .
': Parsing failed with message, "' . $e->getMessage() .
'".');
91 foreach ($this->final_processing_info as
$info) {
93 include_once
'./Modules/Course/classes/Objectives/class.ilLOXmlParser.php';
96 $parser->parseObjectDependencies();
106 $this->final_processing_info[] = array(
107 'course' => $a_course,
108 'entity' => $a_entity,
afterContainerImportProcessing(\ilImportMapping $mapping)
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
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.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.