4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
25 include_once
'./Modules/File/classes/class.ilObjFile.php';
28 if ($new_id = $a_mapping->getMapping(
'Services/Container',
'objs', $a_id)) {
30 $newObj->setVersion(0);
33 $newObj->setNoMetaDataCreation(
true);
34 $newObj->create(
true);
37 include_once(
"./Modules/File/classes/class.ilFileXMLParser.php");
43 $newObj->setMaxVersion($newObj->getVersion());
46 $newObj->createProperties();
49 $this->current_obj = $newObj;
53 $a_mapping->addMapping(
"Modules/File",
"file", $a_id, $newObj->getId());
54 $a_mapping->addMapping(
58 $newObj->getId() .
":0:file" getImportDirectory()
Get import directory.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Importer class for files.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id