4 include_once
'./Services/Export/classes/class.ilImport.php';
34 $manifest_file = $dir.
"/manifest.xml";
35 if(!file_exists($manifest_file))
40 include_once(
"./Services/Export/classes/class.ilManifestParser.php");
44 if(!$parser->getExportSets())
53 foreach($parser->getExportSets() as $set)
55 $GLOBALS[
'ilLog']->write(__METHOD__.
': do import with dir '.$dir.DIRECTORY_SEPARATOR.$set[
'path'].
' and type '.$set[
'type']);
74 global $objDefinition;
76 $class_name =
"ilObj".$objDefinition->getClassName($a_type);
77 $location = $objDefinition->getLocation($a_type);
79 include_once(
$location.
"/class.".$class_name.
".php");
80 $new =
new $class_name();
81 $new->setTitle(
'Import');
83 $new->createReference();
84 $new->putInTree($this->
getMapping()->getTargetId());
85 $new->setPermissions($this->
getMapping()->getTargetId());
87 $this->
getMapping()->addMapping(
'Services/Container',
'objs', 0, $new->getId());
88 $this->
getMapping()->addMapping(
'Services/Container',
'refs', 0,$new->getRefId());