ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilMediaCastExporter 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 ilMediaCastExporter:
+ Collaboration diagram for ilMediaCastExporter:

Public Member Functions

 init ()
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get tail dependencies. More...
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 
 setExport (ilExport $a_exp)
 
 getExport ()
 
 getXmlRepresentation (string $a_entity, string $a_schema_version, string $a_id)
 
 init ()
 
 setExportDirectories (string $a_dir_relative, string $a_dir_absolute)
 
 getRelativeExportDirectory ()
 
 getAbsoluteExportDirectory ()
 
 getXmlExportHeadDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies (string $a_entity, string $a_target_release, array $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions (string $a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion (string $a_entity, string $a_target_release)
 

Private Attributes

ilMediaCastDataSet $ds
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory (string $a_obj_type, int $a_obj_id, string $a_export_type='xml', string $a_entity="")
 
- Protected Attributes inherited from ilXmlExporter
ilExport $exp
 

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 Exporter class for media casts

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

Definition at line 24 of file class.ilMediaCastExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilMediaCastExporter::getValidSchemaVersions ( string  $a_entity)

Returns schema versions that the component can export to.

ILIAS chooses the first one, that has min/max constraints which fit to the target release. Please put the newest on top. Example: return array ( "4.1.0" => array( "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1", "xsd_file" => "ilias_md_4_1.xsd", "min" => "4.1.0", "max" => "") );

Reimplemented from ilXmlExporter.

Definition at line 94 of file class.ilMediaCastExporter.php.

94 : array
95 {
96 return array(
97 "8.0" => array(
98 "namespace" => "https://www.ilias.de/Modules/MediaCast/mcst/8",
99 "xsd_file" => "ilias_mcst_8.xsd",
100 "uses_dataset" => true,
101 "min" => "8.0",
102 "max" => ""),
103 "5.0.0" => array(
104 "namespace" => "https://www.ilias.de/Modules/MediaCast/mcst/5_0",
105 "xsd_file" => "ilias_mcst_5_0.xsd",
106 "uses_dataset" => true,
107 "min" => "5.0.0",
108 "max" => "5.4.99"),
109 "4.1.0" => array(
110 "namespace" => "https://www.ilias.de/Modules/MediaCast/mcst/4_1",
111 "xsd_file" => "ilias_mcst_4_1.xsd",
112 "uses_dataset" => true,
113 "min" => "4.1.0",
114 "max" => "")
115 );
116 }

◆ getXmlExportTailDependencies()

ilMediaCastExporter::getXmlExportTailDependencies ( string  $a_entity,
string  $a_target_release,
array  $a_ids 
)

Get tail dependencies.

Returns
array array of array with keys "component", entity", "ids"

Reimplemented from ilXmlExporter.

Definition at line 35 of file class.ilMediaCastExporter.php.

39 : array {
40 $news_ids = [];
41 foreach ($a_ids as $id) {
42 $mcst = new ilObjMediaCast($id, false);
43 $items = $mcst->readItems(true);
44 foreach ($items as $i) {
45 $news_ids[] = $i["id"];
46 }
47 }
48
49 $deps = [];
50
51 $deps[] = [
52 "component" => "components/ILIAS/News",
53 "entity" => "news",
54 "ids" => $news_ids
55 ];
56
57 // common object properties
58 $deps[] = array(
59 "component" => "components/ILIAS/ILIASObject",
60 "entity" => "common",
61 "ids" => $a_ids);
62
63 $md_ids = [];
64 foreach ($a_ids as $id) {
65 $md_ids[] = $id . ':0:mcst';
66 }
67 if (!empty($md_ids)) {
68 $deps[] = [
69 'component' => 'components/ILIAS/MetaData',
70 'entity' => 'md',
71 'ids' => $md_ids,
72 ];
73 }
74
75 // common object properties
76 $deps[] = [
77 "component" => "components/ILIAS/Notes",
78 "entity" => "comments_settings",
79 "ids" => $a_ids
80 ];
81
82
83 return $deps;
84 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References $id.

◆ getXmlRepresentation()

ilMediaCastExporter::getXmlRepresentation ( string  $a_entity,
string  $a_schema_version,
string  $a_id 
)

Reimplemented from ilXmlExporter.

Definition at line 86 of file class.ilMediaCastExporter.php.

90 : string {
91 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
92 }

◆ init()

ilMediaCastExporter::init ( )

Reimplemented from ilXmlExporter.

Definition at line 28 of file class.ilMediaCastExporter.php.

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

Field Documentation

◆ $ds

ilMediaCastDataSet ilMediaCastExporter::$ds
private

Definition at line 26 of file class.ilMediaCastExporter.php.


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