ILIAS  release_7 Revision v7.30-3-g800a261c036
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
4include_once("./Services/Export/classes/class.ilXmlImporter.php");
5
14{
15 private $logger = null;
16
17
21 public function __construct()
22 {
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");
47 $parser = new ilDataSetImportParser(
48 $a_entity,
49 $this->getSchemaVersion(),
50 $a_xml,
51 $this->ds,
52 $a_mapping
53 );
54 }
55}
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
An exception for terminatinating execution or to throw for unit testing.
Manifest parser for ILIAS standard export files.
Object data set class.
Importer class for objects (currently focused on translation information)
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Xml importer class.
getSchemaVersion()
Get schema version.
getImportDirectory()
Get import directory.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc