ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilUserImporter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Export/classes/class.ilXmlImporter.php");
5 
14 {
15 
19  function init()
20  {
21  include_once("./Services/User/classes/class.ilUserDataSet.php");
22  $this->ds = new ilUserDataSet();
23  $this->ds->setDSPrefix("ds");
24  $this->ds->setImportDirectory($this->getImportDirectory());
25  }
26 
27 
34  function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
35  {
36  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
37  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
38  $a_xml, $this->ds, $a_mapping);
39  }
40 
41 
42 }
43 
44 ?>