ILIAS  release_8 Revision v8.23
ilMetaDataExporter 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 ilMetaDataExporter:
+ Collaboration diagram for ilMetaDataExporter:

Public Member Functions

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

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
string $dir_relative = ""
 
string $dir_absolute = ""
 
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 meta data

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
Id

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

Member Function Documentation

◆ getValidSchemaVersions()

ilMetaDataExporter::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.

Returns
array<string, array<string, string>>

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

48  : array
49  {
50  return array(
51  "4.1.0" => array(
52  "namespace" => "http://www.ilias.de/Services/MetaData/md/4_1",
53  "xsd_file" => "ilias_md_4_1.xsd",
54  "min" => "4.1.0",
55  "max" => ""
56  )
57  );
58  }

◆ getXmlRepresentation()

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

Definition at line 32 of file class.ilMetaDataExporter.php.

References $id.

32  : string
33  {
34  $id = explode(":", $a_id);
35  $mdxml = new ilMD2XML((int) $id[0], (int) $id[1], (string) $id[2]);
36  $mdxml->setExportMode();
37  $mdxml->startExport();
38 
39  return $mdxml->getXML();
40  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

◆ init()

ilMetaDataExporter::init ( )

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

28  : void
29  {
30  }

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