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");
42 $newObj->createProperties();
45 $this->current_obj = $newObj;
49 $a_mapping->addMapping(
"Modules/File",
"file", $a_id, $newObj->getId());
50 $a_mapping->addMapping(
54 $newObj->getId() .
":0:file" getImportDirectory()
Get import directory.
Exercise XML Parser which completes/updates a given file by an xml string.
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