ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilGlossaryExporter.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  function init()
21  {
22  }
23 
32  function getXmlExportTailDependencies($a_entity, $a_target_release, $a_ids)
33  {
34  if ($a_entity == "glo")
35  {
36  include_once("./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
37  $tax_ids = array();
38  foreach ($a_ids as $id)
39  {
40  $t_ids = ilObjTaxonomy::getUsageOfObject($id);
41  if (count($t_ids) > 0)
42  {
43  $tax_ids[$t_ids[0]] = $t_ids[0];
44  }
45  }
46 
47  return array (
48  array(
49  "component" => "Services/Taxonomy",
50  "entity" => "tax",
51  "ids" => $tax_ids)
52  );
53  }
54  return array();
55  }
56 
57 
66  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
67  {
68  include_once './Modules/Glossary/classes/class.ilObjGlossary.php';
69  $glo = new ilObjGlossary($a_id,false);
70 
71  include_once './Modules/Glossary/classes/class.ilGlossaryExport.php';
72  $exp = new ilGlossaryExport($glo,'xml');
73  $zip = $exp->buildExportFile();
74  }
75 
83  function getValidSchemaVersions($a_entity)
84  {
85  return array (
86  "4.1.0" => array(
87  "namespace" => "http://www.ilias.de/Modules/Glossary/htlm/4_1",
88  "xsd_file" => "ilias_glo_4_1.xsd",
89  "uses_dataset" => false,
90  "min" => "4.1.0",
91  "max" => "")
92  );
93  }
94 
95 }
96 
97 ?>