ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
ilForumExporter Class Reference

Exporter class for sessions. More...

+ Inheritance diagram for ilForumExporter:
+ Collaboration diagram for ilForumExporter:

Public Member Functions

 init ()
 Initialisation. 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 sessions.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
Id

Definition at line 13 of file class.ilForumExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilForumExporter::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 59 of file class.ilForumExporter.php.

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" => false,
66  "min" => "4.1.0",
67  "max" => "4.4.999"
68  ),
69  "4.5.0" => array(
70  "namespace" => "http://www.ilias.de/Modules/Forum/frm/4_5",
71  "xsd_file" => "ilias_frm_4_5.xsd",
72  "uses_dataset" => false,
73  "min" => "4.5.0",
74  "max" => "5.0.999"
75  ),
76  "5.1.0" => array(
77  "namespace" => "http://www.ilias.de/Modules/Forum/frm/5_1",
78  "xsd_file" => "ilias_frm_5_1.xsd",
79  "uses_dataset" => false,
80  "min" => "5.1.0",
81  "max" => ""
82  )
83  );
84  }

◆ getXmlRepresentation()

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

Get xml representation.

Parameters
stringentity
stringtarget release
stringid
Returns
string xml string

Definition at line 34 of file class.ilForumExporter.php.

References ilObject\_lookupType(), ilXmlExporter\getAbsoluteExportDirectory(), ilXmlExporter\getRelativeExportDirectory(), and ilUtil\makeDirParents().

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  }
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getRelativeExportDirectory()
Get relative export directory.
XML writer class.
getAbsoluteExportDirectory()
Get absolute export directory.
static _lookupType($a_id, $a_reference=false)
lookup object type
+ Here is the call graph for this function:

◆ init()

ilForumExporter::init ( )

Initialisation.

Definition at line 20 of file class.ilForumExporter.php.

21  {
22 
23  }

Field Documentation

◆ $ds

ilForumExporter::$ds
private

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


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