ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilForumExporter.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 
23  }
24 
25 
34  public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
35  {
36  $xml = '';
37 
38  include_once 'Modules/Forum/classes/class.ilForumXMLWriter.php';
39  if( ilObject::_lookupType($a_id) == 'frm' )
40  {
41  $writer = new ilForumXMLWriter();
42  $writer->setForumId($a_id);
44  $writer->setFileTargetDirectories($this->getRelativeExportDirectory(), $this->getAbsoluteExportDirectory());
45  $writer->start();
46  $xml .= $writer->getXml();
47  }
48 
49  return $xml;
50  }
51 
59  function getValidSchemaVersions($a_entity)
60  {
61  return array (
62  "4.1.0" => array(
63  "namespace" => "http://www.ilias.de/Modules/Forum/frm/4_1",
64  "xsd_file" => "ilias_frm_4_1.xsd",
65  "uses_dataset" => true,
66  "min" => "4.1.0",
67  "max" => "")
68  );
69  }
70 }
71 ?>