4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
36 abstract protected function getType();
41 abstract protected function initParser($a_xml);
62 $objDefinition = $DIC[
"objDefinition"];
63 $log = $DIC->logger()->root();
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()),
95 $log->error(__METHOD__ .
': Parsing failed with message, "' . $e->getMessage() .
'".');
97 $log->error(__METHOD__ .
': Parsing failed with message, "' . $e->getMessage() .
'".');
initReference($a_ref_id=0)
Init reference.
initParser($a_xml)
Init xml parser.
SaxParserException thrown by ilSaxParser if property throwException is set.
static _getAllReferences($a_id)
get all reference ids of object
getType()
Get reference type.
getReference()
get reference
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 representation.