folder xml importer
More...
folder xml importer
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
- Version
- $Id$
Definition at line 15 of file class.ilCourseImporter.php.
◆ addFinalProcessingInfo()
ilCourseImporter::addFinalProcessingInfo |
( |
|
$a_course, |
|
|
|
$a_entity, |
|
|
|
$a_xml |
|
) |
| |
|
protected |
◆ afterContainerImportProcessing()
ilCourseImporter::afterContainerImportProcessing |
( |
\ilImportMapping |
$mapping | ) |
|
- Parameters
-
Definition at line 84 of file class.ilCourseImporter.php.
References $info, and $parser.
86 foreach ($this->final_processing_info as
$info) {
88 include_once
'./Modules/Course/classes/Objectives/class.ilLOXmlParser.php';
91 $parser->parseObjectDependencies();
◆ importXmlRepresentation()
ilCourseImporter::importXmlRepresentation |
( |
|
$a_entity, |
|
|
|
$a_id, |
|
|
|
$a_xml, |
|
|
|
$a_mapping |
|
) |
| |
Import XML.
- Parameters
-
Definition at line 35 of file class.ilCourseImporter.php.
References $GLOBALS, $parser, ilObject\_getAllReferences(), addFinalProcessingInfo(), and ilObjectFactory\getInstanceByRefId().
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);
70 $a_mapping->addMapping(
'Modules/Course',
'crs', $a_id, $this->course->getId());
72 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Parsing failed with message, "' . $e->getMessage() .
'".');
74 $GLOBALS[
'ilLog']->write(__METHOD__ .
': Parsing failed with message, "' . $e->getMessage() .
'".');
$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
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
◆ init()
ilCourseImporter::init |
( |
| ) |
|
◆ $course
ilCourseImporter::$course = null |
|
private |
◆ $final_processing_info
ilCourseImporter::$final_processing_info = array() |
|
private |
◆ ENTITY_MAIN
const ilCourseImporter::ENTITY_MAIN = 'crs' |
◆ ENTITY_OBJECTIVE
const ilCourseImporter::ENTITY_OBJECTIVE = 'objectives' |
The documentation for this class was generated from the following file: