ILIAS  release_7 Revision v7.30-3-g800a261c036
ilObjectImporter Class Reference

Importer class for objects (currently focused on translation information) More...

+ Inheritance diagram for ilObjectImporter:
+ Collaboration diagram for ilObjectImporter:

Public Member Functions

 __construct ()
 Constructor. More...
 
 init ()
 Initialisation. More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import XML. More...
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 Constructor. More...
 
 setImport ($a_val)
 Set import. More...
 
 getImport ()
 Get import. More...
 
 init ()
 Init. More...
 
 setInstallId ($a_val)
 Set installation id. More...
 
 getInstallId ()
 Get installation id. More...
 
 setInstallUrl ($a_val)
 Set installation url. More...
 
 getInstallUrl ()
 Get installation url. More...
 
 setSchemaVersion ($a_val)
 Set schema version. More...
 
 getSchemaVersion ()
 Get schema version. More...
 
 setImportDirectory ($a_val)
 Set import directory. More...
 
 getImportDirectory ()
 Get import directory. More...
 
 setSkipEntities ($a_val)
 Set skip entities. More...
 
 getSkipEntities ()
 Get skip entities. More...
 
 exportedFromSameInstallation ()
 Is exporting and importing installation identical? More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import xml representation. More...
 
 finalProcessing ($a_mapping)
 Final processing. More...
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 Called after all container objects have been implemented. More...
 

Private Attributes

 $logger = null
 

Additional Inherited Members

- Protected Attributes inherited from ilXmlImporter
 $skip_entities = array()
 
 $imp
 

Detailed Description

Importer class for objects (currently focused on translation information)

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 13 of file class.ilObjectImporter.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjectImporter::__construct ( )

Constructor.

Reimplemented from ilXmlImporter.

Definition at line 21 of file class.ilObjectImporter.php.

22 {
24 $this->logger = $GLOBALS['DIC']->logger()->obj();
25 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References $GLOBALS, and ILIAS\GlobalScreen\Provider\__construct().

+ Here is the call graph for this function:

Member Function Documentation

◆ importXmlRepresentation()

ilObjectImporter::importXmlRepresentation (   $a_entity,
  $a_id,
  $a_xml,
  $a_mapping 
)

Import XML.

Parameters

Reimplemented from ilXmlImporter.

Definition at line 44 of file class.ilObjectImporter.php.

45 {
46 include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
47 $parser = new ilDataSetImportParser(
48 $a_entity,
49 $this->getSchemaVersion(),
50 $a_xml,
51 $this->ds,
52 $a_mapping
53 );
54 }
Manifest parser for ILIAS standard export files.
getSchemaVersion()
Get schema version.

References ilXmlImporter\getSchemaVersion().

+ Here is the call graph for this function:

◆ init()

ilObjectImporter::init ( )

Initialisation.

Reimplemented from ilXmlImporter.

Definition at line 30 of file class.ilObjectImporter.php.

31 {
32 include_once("./Services/Object/classes/class.ilObjectDataSet.php");
33 $this->ds = new ilObjectDataSet();
34 $this->ds->setDSPrefix("ds");
35 $this->ds->setImportDirectory($this->getImportDirectory());
36 }
Object data set class.
getImportDirectory()
Get import directory.

References ilXmlImporter\getImportDirectory().

+ Here is the call graph for this function:

Field Documentation

◆ $logger

ilObjectImporter::$logger = null
private

Definition at line 15 of file class.ilObjectImporter.php.


The documentation for this class was generated from the following file: