ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilItemGroupExporter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Export/classes/class.ilXmlExporter.php");
5 
14 {
15  private $ds;
16 
20  public function init()
21  {
22  include_once("./Modules/ItemGroup/classes/class.ilItemGroupDataSet.php");
23  $this->ds = new ilItemGroupDataSet();
24  $this->ds->setExportDirectories($this->dir_relative, $this->dir_absolute);
25  $this->ds->setDSPrefix("ds");
26  }
27 
36  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
37  {
38  return $this->ds->getXmlRepresentation($a_entity, $a_schema_version, $a_id, "", true, true);
39  }
40 
48  public function getValidSchemaVersions($a_entity)
49  {
50  return array(
51  "5.3.0" => array(
52  "namespace" => "http://www.ilias.de/Modules/ItemGroup/itgr/5_3",
53  "xsd_file" => "ilias_itgr_5_3.xsd",
54  "uses_dataset" => true,
55  "min" => "5.3.0",
56  "max" => ""),
57  "4.3.0" => array(
58  "namespace" => "http://www.ilias.de/Modules/ItemGroup/itgr/4_3",
59  "xsd_file" => "ilias_itgr_4_3.xsd",
60  "uses_dataset" => true,
61  "min" => "4.3.0",
62  "max" => "")
63  );
64  }
65 }
Xml Exporter class.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
Item group data set class.
Exporter class for item groups.
Create styles array
The data for the language used.