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

Importer class for media casts. More...

+ Inheritance diagram for ilMediaCastImporter:
+ Collaboration diagram for ilMediaCastImporter:

Public Member Functions

 init ()
 Initialisation. More...
 
 importXmlRepresentation ($a_entity, $a_id, $a_xml, $a_mapping)
 Import XML. More...
 
 finalProcessing ($a_mapping)
 
- 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 casts.

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.ilMediaCastImporter.php.

Member Function Documentation

◆ finalProcessing()

ilMediaCastImporter::finalProcessing (   $a_mapping)

Definition at line 45 of file class.ilMediaCastImporter.php.

References $map.

46  {
47  // restore manual order
48  $order = $this->ds->getOrder();
49  if (sizeof($order)) {
50  foreach ($order as $obj_id => $items) {
51  $map = array();
52  foreach ($items as $old_id) {
53  $map[] = $a_mapping->getMapping("Services/News", "news", $old_id);
54  }
55 
56  $mcst = new ilObjMediaCast($obj_id, false);
57  $mcst->saveOrder($map);
58  }
59  }
60  }
Class ilObjMediaCast.

◆ importXmlRepresentation()

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

Import XML.

Parameters

Definition at line 33 of file class.ilMediaCastImporter.php.

References $parser, and ilXmlImporter\getSchemaVersion().

34  {
35  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
37  $a_entity,
38  $this->getSchemaVersion(),
39  $a_xml,
40  $this->ds,
41  $a_mapping
42  );
43  }
getSchemaVersion()
Get schema version.
Manifest parser for ILIAS standard export files.
$parser
Definition: BPMN2Parser.php:23
+ Here is the call graph for this function:

◆ init()

ilMediaCastImporter::init ( )

Initialisation.

Definition at line 19 of file class.ilMediaCastImporter.php.

20  {
21  include_once("./Modules/MediaCast/classes/class.ilMediaCastDataSet.php");
22  $this->ds = new ilMediaCastDataSet();
23  $this->ds->setDSPrefix("ds");
24  }
Media cast data set class.

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