ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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  public 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  include_once("./Services/MetaData/classes/class.ilMDXMLCopier.php");
27  $id = explode(":", $new_id);
28  $xml_copier = new ilMDXMLCopier($a_xml, $id[0], $id[1], $id[2]);
29  $xml_copier->startParsing();
30  }
31  }
32 }
if(!array_key_exists('StateId', $_REQUEST)) $id
Importer class for media pools.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Xml importer class.