52 : void {
53 if ($new_id = $a_mapping->
getMapping(
'components/ILIAS/Container',
'objs', $a_id)) {
56 }
57 elseif ($new_id = $a_mapping->
getMapping(
'components/ILIAS/Container',
'refs',
'0')) {
61 $this->course->create();
62 }
63
64 if ($a_entity == self::ENTITY_OBJECTIVE) {
66
67
68
70 $parser->setMapping($a_mapping);
71 $parser->parse();
72 (new \ILIAS\Conditions\Export\Repository($this->db))->updateCourseValuesResultRangePercentage(
73 $this->course->getId(),
74 $a_mapping
75 );
76 return;
77 }
78
79 try {
81 $parser->setXMLContent($a_xml);
82 $parser->startParsing();
83
84
85 $this->course->setOfflineStatus(true);
86 $this->course->update();
87
88 $a_mapping->
addMapping(
'components/ILIAS/Course',
'crs', $a_id, (
string) $this->course->getId());
89 $a_mapping->
addMapping(
'components/ILIAS/AdvancedMetaData',
'parent', $a_id, (
string) $this->course->getId());
90
91
92 $this->course->deleteMetaData();
94 'components/ILIAS/MetaData',
95 'md',
96 $a_id . ':0:crs',
97 $this->course->getId() . ':0:crs'
98 );
100 $this->
logger->error(
'Parsing failed with message, "' . $e->getMessage() .
'".');
101 }
102 }
addFinalProcessingInfo($a_course, $a_entity, $a_xml)
addMapping(string $a_comp, string $a_entity, string $a_old_id, string $a_new_id)
getMapping(string $a_comp, string $a_entity, string $a_old_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstanceByRefId(int $ref_id, bool $stop_on_error=true)
get an instance of an Ilias object by reference id
static _getAllReferences(int $id)
get all reference ids for object ID
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...