ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilMediaCastImporter.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 {
15 
19  function init()
20  {
21  include_once("./Modules/MediaCast/classes/class.ilMediaCastDataSet.php");
22  $this->ds = new ilMediaCastDataSet();
23  $this->ds->setDSPrefix("ds");
24  }
25 
26 
33  function importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
34  {
35  include_once("./Services/DataSet/classes/class.ilDataSetImportParser.php");
36  $parser = new ilDataSetImportParser($a_entity, $this->getSchemaVersion(),
37  $a_xml, $this->ds, $a_mapping);
38  }
39 
40  function finalProcessing($a_mapping)
41  {
42  // restore manual order
43  $order = $this->ds->getOrder();
44  if(sizeof($order))
45  {
46  foreach($order as $obj_id => $items)
47  {
48  $map = array();
49  foreach($items as $old_id)
50  {
51  $map[] = $a_mapping->getMapping("Services/News", "news", $old_id);
52  }
53 
54  $mcst = new ilObjMediaCast($obj_id, false);
55  $mcst->saveOrder($map);
56  }
57  }
58  }
59 }
60 
61 ?>
Media cast data set class.
getSchemaVersion()
Get schema version.
Manifest parser for ILIAS standard export files.
importXmlRepresentation($a_entity, $a_id, $a_xml, $a_mapping)
Import XML.
Class ilObjMediaCast.
Create styles array
The data for the language used.
$parser
Definition: BPMN2Parser.php:24
Importer class for media casts.
Xml importer class.