ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilILIASObjectExporter.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
29{
31
32 public function init(): void
33 {
34 $this->ds = new ilObjectDataSet();
35 $this->ds->initByExporter($this);
36 $this->ds->setDSPrefix("ds");
37 }
38
43 public function getXmlExportTailDependencies(string $entity, string $target_release, array $ids): array
44 {
45 return [];
46 }
47
48 public function getXmlRepresentation(string $entity, string $schema_version, string $id): string
49 {
50 $this->ds->initByExporter($this);
51 return $this->ds->getXmlRepresentation($entity, $schema_version, [$id], "", true, true);
52 }
53
59 public function getValidSchemaVersions(string $entity): array
60 {
61 return [
62 "5.4.0" => [
63 "namespace" => "http://www.ilias.de/Services/Object/obj/5_4",
64 "xsd_file" => "ilias_obj_5_4.xsd",
65 "uses_dataset" => true,
66 "min" => "5.4.0",
67 "max" => ""
68 ],
69 "5.1.0" => [
70 "namespace" => "http://www.ilias.de/Services/Object/obj/5_1",
71 "xsd_file" => "ilias_obj_5_1.xsd",
72 "uses_dataset" => true,
73 "min" => "5.1.0",
74 "max" => "5.3.99"
75 ],
76 "4.4.0" => [
77 "namespace" => "http://www.ilias.de/Services/Object/obj/4_4",
78 "xsd_file" => "ilias_obj_4_4.xsd",
79 "uses_dataset" => true,
80 "min" => "4.4.0",
81 "max" => "5.0.99"
82 ]
83 ];
84 }
85}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
Exporter class for object related data (please note that title and description are usually included i...
getXmlRepresentation(string $entity, string $schema_version, string $id)
getXmlExportTailDependencies(string $entity, string $target_release, array $ids)
Get tail dependencies.
getValidSchemaVersions(string $entity)
Returns schema versions that the component can export to.
Object data set class.
Xml Exporter class.