ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjectExporter Class Reference

Exporter class for object related data (please note that title and description are usually included in the spefific object exporter classes, this class takes care of additional general object related data (e.g. More...

+ Inheritance diagram for ilObjectExporter:
+ Collaboration diagram for ilObjectExporter:

Public Member Functions

 init ()
 Initialisation. More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
- Public Member Functions inherited from ilXmlExporter
 __construct ()
 Constructor. More...
 
 setExport (ilExport $a_exp)
 Set export object. More...
 
 getExport ()
 Get export. More...
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 Get xml representation. More...
 
 init ()
 
 setExportDirectories ($a_dir_relative, $a_dir_absolute)
 Export directories. More...
 
 getRelativeExportDirectory ()
 Get relative export directory. More...
 
 getAbsoluteExportDirectory ()
 Get absolute export directory. More...
 
 getXmlExportHeadDependencies ($a_entity, $a_target_release, $a_ids)
 Get head dependencies. More...
 
 getXmlExportTailDependencies ($a_entity, $a_target_release, $a_ids)
 Get tail dependencies. More...
 
 getValidSchemaVersions ($a_entity)
 Returns schema versions that the component can export to. More...
 
 determineSchemaVersion ($a_entity, $a_target_release)
 Determine schema version. More...
 

Private Attributes

 $ds
 

Additional Inherited Members

- Static Public Member Functions inherited from ilXmlExporter
static lookupExportDirectory ($a_obj_type, $a_obj_id, $a_export_type='xml', $a_entity="")
 export directory lookup More...
 
- Protected Attributes inherited from ilXmlExporter
 $dir_relative
 
 $dir_absolute
 
 $exp
 

Detailed Description

Exporter class for object related data (please note that title and description are usually included in the spefific 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
Version
$Id$

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

Member Function Documentation

◆ getValidSchemaVersions()

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

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

65  {
66  return array(
67  "5.4.0" => array(
68  "namespace" => "http://www.ilias.de/Services/Object/obj/5_4",
69  "xsd_file" => "ilias_obj_5_4.xsd",
70  "uses_dataset" => true,
71  "min" => "5.4.0",
72  "max" => ""),
73  "5.1.0" => array(
74  "namespace" => "http://www.ilias.de/Services/Object/obj/5_1",
75  "xsd_file" => "ilias_obj_5_1.xsd",
76  "uses_dataset" => true,
77  "min" => "5.1.0",
78  "max" => "5.3.99"),
79  "4.4.0" => array(
80  "namespace" => "http://www.ilias.de/Services/Object/obj/4_4",
81  "xsd_file" => "ilias_obj_4_4.xsd",
82  "uses_dataset" => true,
83  "min" => "4.4.0",
84  "max" => "5.0.99")
85  );
86  }

◆ getXmlExportTailDependencies()

ilObjectExporter::getXmlExportTailDependencies (   $a_entity,
  $a_target_release,
  $a_ids 
)

Get tail dependencies.

Parameters
stringentity
stringtarget release
arrayids
Returns
array array of array with keys "component", entity", "ids"

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

39  {
40  return array();
41  }

◆ getXmlRepresentation()

ilObjectExporter::getXmlRepresentation (   $a_entity,
  $a_schema_version,
  $a_id 
)

Get xml representation.

Parameters
stringentity
stringtarget release
stringid
Returns
string xml string

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

52  {
53  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
54  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
55  }

◆ init()

ilObjectExporter::init ( )

Initialisation.

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

23  {
24  include_once("./Services/Object/classes/class.ilObjectDataSet.php");
25  $this->ds = new ilObjectDataSet();
26  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
27  $this->ds->setDSPrefix("ds");
28  }
Object data set class.

Field Documentation

◆ $ds

ilObjectExporter::$ds
private

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


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