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());
88 global $objDefinition;
90 $class_name =
"ilObj" . $objDefinition->getClassName(
$a_type);
93 include_once(
$location .
"/class." . $class_name .
".php");
94 $new =
new $class_name();
95 $new->setTitle(
'Import');
97 $new->createReference();
101 $this->
getMapping()->addMapping(
'Services/Container',
'objs', 0,
$new->getId());
102 $this->
getMapping()->addMapping(
'Services/Container',
'refs', 0,
$new->getRefId());
createDummy($a_type)
Create dummy object.
getMapping()
Get mapping object.
__construct($a_target_id)
Constructor.
Create styles array
The data for the language used.
Manifest parser for ILIAS standard export files.
doImportObject($dir, $type, $a_component="", $a_tmpdir="")
Import a container.