4 include_once
'./Services/Export/classes/class.ilImport.php';
34 include_once(
"./Services/Export/classes/class.ilManifestParser.php");
39 if(!$parser->getExportSets())
48 foreach($parser->getExportSets() as $set)
50 $GLOBALS[
'ilLog']->write(__METHOD__.
': do import with dir '.
$dir.DIRECTORY_SEPARATOR.$set[
'path'].
' and type '.$set[
'type']);
69 global $objDefinition;
71 $class_name =
"ilObj".$objDefinition->getClassName($a_type);
72 $location = $objDefinition->getLocation($a_type);
74 include_once(
$location.
"/class.".$class_name.
".php");
75 $new =
new $class_name();
76 $new->setTitle(
'Import');
78 $new->createReference();
79 $new->putInTree($this->
getMapping()->getTargetId());
80 $new->setPermissions($this->
getMapping()->getTargetId());
82 $this->
getMapping()->addMapping(
'Services/Container',
'objs', 0, $new->getId());
83 $this->
getMapping()->addMapping(
'Services/Container',
'refs', 0,$new->getRefId());