ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMediaCastImporter Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 init ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
 finalProcessing (ilImportMapping $a_mapping)
 
- Public Member Functions inherited from ilXmlImporter
 __construct ()
 
 setImport (ilImport $a_val)
 
 getImport ()
 
 init ()
 
 setInstallId (string $a_val)
 
 getInstallId ()
 
 setInstallUrl (string $a_val)
 
 getInstallUrl ()
 
 setSchemaVersion (string $a_val)
 
 getSchemaVersion ()
 
 setImportDirectory (string $a_val)
 
 getImportDirectory ()
 
 setSkipEntities (array $a_val)
 
 getSkipEntities ()
 
 exportedFromSameInstallation ()
 
 importXmlRepresentation (string $a_entity, string $a_id, string $a_xml, ilImportMapping $a_mapping)
 
 finalProcessing (ilImportMapping $a_mapping)
 
 afterContainerImportProcessing (ilImportMapping $mapping)
 

Protected Attributes

ilMediaCastDataSet $ds
 
- Protected Attributes inherited from ilXmlImporter
array $skip_entities = array()
 
ilImport $imp
 
string $install_id
 
string $install_url
 
string $schema_version
 
string $import_directory
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Importer class for media casts

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Member Function Documentation

◆ finalProcessing()

ilMediaCastImporter::finalProcessing ( ilImportMapping  $a_mapping)

Reimplemented from ilXmlImporter.

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

50 : void {
51 // restore manual order
52 $order = $this->ds->getOrder();
53 if (sizeof($order)) {
54 foreach ($order as $obj_id => $items) {
55 $map = array();
56 foreach ($items as $old_id) {
57 $map[] = $a_mapping->getMapping("components/ILIAS/News", "news", $old_id);
58 }
59
60 $mcst = new ilObjMediaCast($obj_id, false);
61 $mcst->saveOrder($map);
62 }
63 }
64 }
getMapping(string $a_comp, string $a_entity, string $a_old_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References ilImportMapping\getMapping().

+ Here is the call graph for this function:

◆ importXmlRepresentation()

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

Reimplemented from ilXmlImporter.

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

38 : void {
39 $parser = new ilDataSetImportParser(
40 $a_entity,
41 $this->getSchemaVersion(),
42 $a_xml,
43 $this->ds,
44 $a_mapping
45 );
46 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ init()

ilMediaCastImporter::init ( )

Reimplemented from ilXmlImporter.

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

27 : void
28 {
29 $this->ds = new ilMediaCastDataSet();
30 $this->ds->setDSPrefix("ds");
31 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $ds

ilMediaCastDataSet ilMediaCastImporter::$ds
protected

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


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