ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilMediaObjectsImporter Class Reference

Importer class for media pools. More...

+ Inheritance diagram for ilMediaObjectsImporter:
+ Collaboration diagram for ilMediaObjectsImporter:

Public Member Functions

 init ()
 Init. More...
 
 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.ilMediaObjectsImporter.php.

Member Function Documentation

◆ importXmlRepresentation()

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

Import XML.

Parameters

Definition at line 43 of file class.ilMediaObjectsImporter.php.

References $parser, and ilXmlImporter\getSchemaVersion().

44  {
45  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
46  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
47  $a_xml, $this->ds, $a_mapping);
48  }
getSchemaVersion()
Get schema version.
Manifest parser for ILIAS standard export files.
$parser
Definition: BPMN2Parser.php:24
+ Here is the call graph for this function:

◆ init()

ilMediaObjectsImporter::init ( )

Init.

Parameters

Definition at line 22 of file class.ilMediaObjectsImporter.php.

References ilXmlImporter\getImport(), and ilXmlImporter\getImportDirectory().

23  {
24  include_once("./Services/MediaObjects/classes/class.ilMediaObjectDataSet.php");
25  $this->ds = new ilMediaObjectDataSet();
26  $this->ds->setDSPrefix("ds");
27  $this->ds->setImportDirectory($this->getImportDirectory());
28 
29 
30  $this->config = $this->getImport()->getConfig("Services/MediaObjects");
31  if ($this->config->getUsePreviousImportIds())
32  {
33  $this->ds->setUsePreviousImportIds(true);
34  }
35  }
getImportDirectory()
Get import directory.
getImport()
Get import.
Media Pool Data set class.
+ Here is the call graph for this function:

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