ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilMetaDataExporter Class Reference

Exporter class for meta data. 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

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 27 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 49 of file class.ilMetaDataExporter.php.

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

◆ getXmlRepresentation()

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

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

References $id.

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

◆ init()

ilMetaDataExporter::init ( )

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

29  : void
30  {
31  }

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