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

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)
 
- 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

ilMediaObjectDataSet $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 Export2 class for media pools

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

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

Member Function Documentation

◆ getValidSchemaVersions()

ilMediaObjectsExporter::getValidSchemaVersions ( string  $a_entity)
Returns
array[]

Reimplemented from ilXmlExporter.

Definition at line 65 of file class.ilMediaObjectsExporter.php.

67 : array {
68 return array(
69 "10.0" => array(
70 "namespace" => "https://www.ilias.de/Services/MediaObjects/mob/10",
71 "xsd_file" => "ilias_mob_10.xsd",
72 "uses_dataset" => true,
73 "min" => "10.0",
74 "max" => ""),
75 "5.1.0" => array(
76 "namespace" => "https://www.ilias.de/Services/MediaObjects/mob/5_1",
77 "xsd_file" => "ilias_mob_5_1.xsd",
78 "uses_dataset" => true,
79 "min" => "5.1.0",
80 "max" => ""),
81 "4.3.0" => array(
82 "namespace" => "https://www.ilias.de/Services/MediaObjects/mob/4_3",
83 "xsd_file" => "ilias_mob_4_3.xsd",
84 "uses_dataset" => true,
85 "min" => "4.3.0",
86 "max" => ""),
87 "4.1.0" => array(
88 "namespace" => "https://www.ilias.de/Services/MediaObjects/mob/4_1",
89 "xsd_file" => "ilias_mob_4_1.xsd",
90 "uses_dataset" => true,
91 "min" => "4.1.0",
92 "max" => "")
93 );
94 }

◆ getXmlExportTailDependencies()

ilMediaObjectsExporter::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 34 of file class.ilMediaObjectsExporter.php.

38 : array {
39 $md_ids = array();
40 foreach ($a_ids as $mob_id) {
41 $md_ids[] = "0:" . $mob_id . ":mob";
42 }
43
44 return array(
45 array(
46 "component" => "components/ILIAS/MetaData",
47 "entity" => "md",
48 "ids" => $md_ids)
49 );
50 }

◆ getXmlRepresentation()

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

Reimplemented from ilXmlExporter.

Definition at line 52 of file class.ilMediaObjectsExporter.php.

56 : string {
58 $this->ds->initByExporter($this);
59 return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, [$a_id], "", true, true);
60 }
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.

◆ init()

ilMediaObjectsExporter::init ( )

Reimplemented from ilXmlExporter.

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

28 : void
29 {
30 $this->ds = new ilMediaObjectDataSet();
31 $this->ds->setDSPrefix("ds");
32 }
Media Pool Data set class.

Field Documentation

◆ $ds

ilMediaObjectDataSet ilMediaObjectsExporter::$ds
private

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


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