ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilObjectImporter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Export/classes/class.ilXmlImporter.php");
5 
14 {
15  private $logger = null;
16 
17 
21  public function __construct()
22  {
23  parent::__construct();
24  $this->logger = $GLOBALS['DIC']->logger()->obj();
25  }
26 
30  public function init()
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  }
37 
38 
44  public function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
45  {
46  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
48  $a_entity,
49  $this->getSchemaVersion(),
50  $a_xml,
51  $this->ds,
52  $a_mapping
53  );
54  }
55 }
__construct()
Constructor.
getSchemaVersion()
Get schema version.
Importer class for objects (currently focused on translation information)
getImportDirectory()
Get import directory.
Object data set class.
Manifest parser for ILIAS standard export files.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
init()
Initialisation.
$parser
Definition: BPMN2Parser.php:23
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
Xml importer class.