4include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
 
   62        $objDefinition = 
$DIC[
"objDefinition"];
 
   65        include_once 
'./Modules/Category/classes/class.ilObjCategory.php';
 
   66        if ($new_id = $a_mapping->getMapping(
'Services/Container', 
'objs', $a_id)) {
 
   71        elseif ($new_id = $a_mapping->getMapping(
'Services/Container', 
'refs', 0)) {
 
   83            $parser->setImportMapping($a_mapping);
 
   88            $a_mapping->addMapping(
 
   89                $objDefinition->getComponentForType($this->getType()),
 
   92                $this->getReference()->getId()
 
   95            $log->error(__METHOD__ . 
': Parsing failed with message, "' . $e->getMessage() . 
'".');
 
   96        } 
catch (Exception $e) {
 
   97            $log->error(__METHOD__ . 
': Parsing failed with message, "' . $e->getMessage() . 
'".');
 
An exception for terminatinating execution or to throw for unit testing.
getReference()
get reference
initParser($a_xml)
Init xml parser.
getType()
Get reference type.
initReference($a_ref_id=0)
Init reference.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
static _getAllReferences($a_id)
get all reference ids of object
SaxParserException thrown by ilSaxParser if property throwException is set.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import xml representation.