4 include_once
'./Services/Export/classes/class.ilImport.php';
22 parent::__construct($a_target_id);
34 $manifest_file = $dir .
"/manifest.xml";
35 if (!file_exists($manifest_file)) {
39 include_once(
"./Services/Export/classes/class.ilManifestParser.php");
49 $all_importers = array();
51 if (!
$parser->getExportSets()) {
53 $import_info = parent::doImportObject($dir,
$type);
55 $all_importers = array_merge($all_importers, $import_info[
'importers']);
62 foreach (
$parser->getExportSets() as $set) {
63 $import_info = parent::doImportObject($dir . DIRECTORY_SEPARATOR . $set[
'path'], $set[
'type']);
65 $all_importers = array_merge($all_importers, $import_info[
'importers']);
73 foreach ((array) $all_importers as $importer) {
74 $importer->afterContainerImportProcessing($this->
getMapping());
90 $objDefinition = $DIC[
'objDefinition'];
92 $class_name =
"ilObj" . $objDefinition->getClassName(
$a_type);
95 include_once(
$location .
"/class." . $class_name .
".php");
96 $new =
new $class_name();
97 $new->setTitle(
'Import');
99 $new->createReference();
100 $new->putInTree($this->
getMapping()->getTargetId());
101 $new->setPermissions($this->
getMapping()->getTargetId());
103 $this->
getMapping()->addMapping(
'Services/Container',
'objs', 0, $new->getId());
104 $this->
getMapping()->addMapping(
'Services/Container',
'refs', 0, $new->getRefId());
createDummy($a_type)
Create dummy object.
getMapping()
Get mapping object.
__construct($a_target_id)
Constructor.
Manifest parser for ILIAS standard export files.
doImportObject($dir, $type, $a_component="", $a_tmpdir="")
Import a container.