ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjectExporter 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 ilObjectExporter:
+ Collaboration diagram for ilObjectExporter:

Public Member Functions

 init ()
 
 getXmlExportTailDependencies (string $entity, string $target_release, array $ids)
 Get tail dependencies. More...
 
 getXmlRepresentation (string $entity, string $schema_version, string $id)
 
 getValidSchemaVersions (string $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)
 

Private Attributes

ilObjectDataSet $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
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 object related data (please note that title and description are usually included in the specific object exporter classes, this class takes care of additional general object related data (e.g. translations)

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

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

Member Function Documentation

◆ getValidSchemaVersions()

ilObjectExporter::getValidSchemaVersions ( string  $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.

Definition at line 59 of file class.ilObjectExporter.php.

59  : 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  }

◆ getXmlExportTailDependencies()

ilObjectExporter::getXmlExportTailDependencies ( string  $entity,
string  $target_release,
array  $ids 
)

Get tail dependencies.

Returns
array array of array with keys "component", entity", "ids"

Definition at line 43 of file class.ilObjectExporter.php.

43  : array
44  {
45  return array();
46  }

◆ getXmlRepresentation()

ilObjectExporter::getXmlRepresentation ( string  $entity,
string  $schema_version,
string  $id 
)

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

48  : string
49  {
50  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
51  return $this->ds->getXmlRepresentation($entity, $schema_version, [$id], "", true, true);
52  }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

◆ init()

ilObjectExporter::init ( )

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

32  : void
33  {
34  $this->ds = new ilObjectDataSet();
35  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
36  $this->ds->setDSPrefix("ds");
37  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $ds

ilObjectDataSet ilObjectExporter::$ds
private

Definition at line 30 of file class.ilObjectExporter.php.


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