ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilMetaDataImporter.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 {
21  function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
22  {
23  $new_id = $a_mapping->getMapping("Services/MetaData", "md", $a_id);
24 
25  if ($new_id != "")
26  {
27  include_once("./Services/MetaData/classes/class.ilMDXMLCopier.php");
28  $id = explode(":", $new_id);
29  $xml_copier = new ilMDXMLCopier($a_xml, $id[0], $id[1], $id[2]);
30  $xml_copier->startParsing();
31  }
32  }
33 
34 }
35 
36 ?>