4include_once 
'./Services/Export/classes/class.ilImport.php';
 
   22                parent::__construct($a_target_id);
 
   32        protected function doImportObject($dir, $type, $a_component = 
"", $a_tmpdir = 
"")
 
   34                $manifest_file = $dir.
"/manifest.xml";
 
   35                if(!file_exists($manifest_file))
 
   40                include_once(
"./Services/Export/classes/class.ilManifestParser.php");
 
   50                $all_importers = array();
 
   55                        $import_info = parent::doImportObject($dir,$type);
 
   57                        $all_importers = array_merge($all_importers, $import_info[
'importers']);
 
   64                foreach(
$parser->getExportSets() as $set)
 
   66                        $import_info = parent::doImportObject($dir.DIRECTORY_SEPARATOR.$set[
'path'],$set[
'type']);
 
   68                        $all_importers = array_merge($all_importers, $import_info[
'importers']);
 
   77                foreach((array) $all_importers as $importer)
 
   79                        $importer->afterContainerImportProcessing($this->
getMapping());
 
   93                global $objDefinition;
 
   95                $class_name = 
"ilObj".$objDefinition->getClassName(
$a_type);
 
   98                include_once(
$location.
"/class.".$class_name.
".php");
 
   99                $new = 
new $class_name();
 
  100                $new->setTitle(
'Import');
 
  102                $new->createReference();
 
  106                $this->
getMapping()->addMapping(
'Services/Container',
'objs', 0, 
$new->getId());
 
  107                $this->
getMapping()->addMapping(
'Services/Container',
'refs', 0,
$new->getRefId());
 
An exception for terminatinating execution or to throw for unit testing.
doImportObject($dir, $type, $a_component="", $a_tmpdir="")
Import a container.
createDummy($a_type)
Create dummy object.
__construct($a_target_id)
Constructor.
getMapping()
Get mapping object.
Manifest parser for ILIAS standard export files.