ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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

Reimplemented from ilXmlExporter.

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

58 {
59 return array(
60 "4.1.0" => array(
61 "namespace" => "http://www.ilias.de/Modules/Forum/frm/4_1",
62 "xsd_file" => "ilias_frm_4_1.xsd",
63 "uses_dataset" => false,
64 "min" => "4.1.0",
65 "max" => "4.4.999"
66 ),
67 "4.5.0" => array(
68 "namespace" => "http://www.ilias.de/Modules/Forum/frm/4_5",
69 "xsd_file" => "ilias_frm_4_5.xsd",
70 "uses_dataset" => false,
71 "min" => "4.5.0",
72 "max" => "5.0.999"
73 ),
74 "5.1.0" => array(
75 "namespace" => "http://www.ilias.de/Modules/Forum/frm/5_1",
76 "xsd_file" => "ilias_frm_5_1.xsd",
77 "uses_dataset" => false,
78 "min" => "5.1.0",
79 "max" => ""
80 )
81 );
82 }

◆ getXmlRepresentation()

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

Get xml representation.

Parameters
stringentity
stringtarget release
stringid
Returns
string xml string

Reimplemented from ilXmlExporter.

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

34 {
35 $xml = '';
36
37 include_once 'Modules/Forum/classes/class.ilForumXMLWriter.php';
38 if (ilObject::_lookupType($a_id) == 'frm') {
39 $writer = new ilForumXMLWriter();
40 $writer->setForumId($a_id);
42 $writer->setFileTargetDirectories($this->getRelativeExportDirectory(), $this->getAbsoluteExportDirectory());
43 $writer->start();
44 $xml .= $writer->getXml();
45 }
46
47 return $xml;
48 }
static _lookupType($a_id, $a_reference=false)
lookup object type
static makeDirParents($a_dir)
Create a new directory and all parent directories.
getRelativeExportDirectory()
Get relative export directory.
getAbsoluteExportDirectory()
Get absolute export directory.
$xml
Definition: metadata.php:240

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

+ Here is the call graph for this function:

◆ init()

ilForumExporter::init ( )

Initialisation.

Reimplemented from ilXmlExporter.

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

21 {
22 }

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: