ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilObjectExporter.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
29 {
31 
32  public function init(): void
33  {
34  $this->ds = new ilObjectDataSet();
35  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
36  $this->ds->setDSPrefix("ds");
37  }
38 
43  public function getXmlExportTailDependencies(string $entity, string $target_release, array $ids): array
44  {
45  return array();
46  }
47 
48  public function getXmlRepresentation(string $entity, string $schema_version, string $id): string
49  {
50  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
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 }
getValidSchemaVersions(string $entity)
Returns schema versions that the component can export to.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
getXmlRepresentation(string $entity, string $schema_version, string $id)
getXmlExportTailDependencies(string $entity, string $target_release, array $ids)
Get tail dependencies.