ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilMetaDataImporter Class Reference

Importer class for media pools. More...

+ Inheritance diagram for ilMetaDataImporter:
+ Collaboration diagram for ilMetaDataImporter:

Public Member Functions

 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import XML. More...
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 Constructor. More...
 
 setImport ($a_val)
 Set import. More...
 
 getImport ()
 Get import. More...
 
 init ()
 Init. More...
 
 setInstallId ($a_val)
 Set installation id. More...
 
 getInstallId ()
 Get installation id. More...
 
 setInstallUrl ($a_val)
 Set installation url. More...
 
 getInstallUrl ()
 Get installation url. More...
 
 setSchemaVersion ($a_val)
 Set schema version. More...
 
 getSchemaVersion ()
 Get schema version. More...
 
 setImportDirectory ($a_val)
 Set import directory. More...
 
 getImportDirectory ()
 Get import directory. More...
 
 setSkipEntities ($a_val)
 Set skip entities. More...
 
 getSkipEntities ()
 Get skip entities. More...
 
 exportedFromSameInstallation ()
 Is exporting and importing installation identical? More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import xml representation. More...
 
 finalProcessing ($a_mapping)
 Final processing. More...
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 Called after all container objects have been implemented. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilXmlImporter
 $skip_entities = array()
 
 $imp
 

Detailed Description

Importer class for media pools.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id

Definition at line 13 of file class.ilMetaDataImporter.php.

Member Function Documentation

◆ importXmlRepresentation()

ilMetaDataImporter::importXmlRepresentation (   $a_entity,
  $a_id,
  $a_xml,
  $a_mapping 
)

Import XML.

Parameters

Definition at line 21 of file class.ilMetaDataImporter.php.

References $id.

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  }
if(!array_key_exists('StateId', $_REQUEST)) $id

The documentation for this class was generated from the following file: