4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
32 include_once
'./Modules/Folder/classes/class.ilObjFolder.php';
33 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_id))
37 elseif($new_id = $a_mapping->getMapping(
'Services/Container',
'refs',0))
43 $this->folder =
new ilObjFolder();
44 $this->folder->create(
true);
47 include_once
'./Modules/Folder/classes/class.ilFolderXmlParser.php';
53 $a_mapping->addMapping(
'Modules/Folder',
'fold',$a_id,$this->folder->getId());
57 $GLOBALS[
'ilLog']->write(__METHOD__.
': Parsing failed with message, "'.$e->getMessage().
'".');
59 catch(ilWebLinkXMLParserException $e)
61 $GLOBALS[
'ilLog']->write(__METHOD__.
': Parsing failed with message, "'.$e->getMessage().
'".');
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
SaxParserException thrown by ilSaxParser if property throwException is set.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
XML parser for folder xml.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id