4 include_once(
"./Services/Export/classes/class.ilXmlImporter.php");
23 include_once
'./Modules/File/classes/class.ilObjFile.php';
26 if($new_id = $a_mapping->getMapping(
'Services/Container',
'objs',$a_id))
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(
"Services/MetaData",
"md", $a_id.
":0:file",
51 $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