4include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
 
   26        if ($new_id = $a_mapping->getMapping(
'Services/Container', 
'objs', $a_id)) {
 
   28            $newObj->setVersion(0); 
 
   31            $newObj->setNoMetaDataCreation(
true); 
 
   32            $newObj->create(
true);
 
   37        $parser->startParsing();
 
   40            $newObj->setMaxVersion($newObj->getVersion());
 
   43        $newObj->createProperties();
 
   45        $parser->setFileContents();
 
   46        $this->current_obj = $newObj;
 
   50        $a_mapping->addMapping(
"Modules/File", 
"file", $a_id, $newObj->getId());
 
   51        $a_mapping->addMapping(
 
   55            $newObj->getId() . 
":0:file" 
An exception for terminatinating execution or to throw for unit testing.
Importer class for files.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
getImportDirectory()
Get import directory.