4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
32 include_once
'./Modules/Category/classes/class.ilObjCategory.php';
33 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_id))
39 elseif($new_id = $a_mapping->getMapping(
'Services/Container',
'refs',0))
45 $this->category =
new ilObjCategory();
46 $this->category->create(
true);
49 include_once
'./Modules/Category/classes/class.ilCategoryXmlParser.php';
54 $parser->setCategory($this->category);
56 $parser->startParsing();
57 $a_mapping->addMapping(
'Modules/Category',
'cat',$a_id,$this->category->getId());
61 $GLOBALS[
'ilLog']->write(__METHOD__.
': Parsing failed with message, "'.$e->getMessage().
'".');
65 $GLOBALS[
'ilLog']->write(__METHOD__.
': Parsing failed with message, "'.$e->getMessage().
'".');
getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
SaxParserException thrown by ilSaxParser if property throwException is set.
static _getAllReferences($a_id)
get all reference ids of object
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.