ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilChatroomExporter Class Reference

Class ilChatroomExporter. More...

+ Inheritance diagram for ilChatroomExporter:
+ Collaboration diagram for ilChatroomExporter:

Public Member Functions

 init ()
 
 getXmlRepresentation ($a_entity, $a_schema_version, $a_id)
 
 getValidSchemaVersions ($a_entity)
 
- 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...
 

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

Class ilChatroomExporter.

Definition at line 9 of file class.ilChatroomExporter.php.

Member Function Documentation

◆ getValidSchemaVersions()

ilChatroomExporter::getValidSchemaVersions (   $a_entity)

Definition at line 39 of file class.ilChatroomExporter.php.

40  {
41  return array(
42  '5.3.0' => array(
43  'namespace' => 'http://www.ilias.de/Modules/Chatroom/chtr/5_3',
44  'xsd_file' => 'ilias_chtr_5_3.xsd',
45  'uses_dataset' => false,
46  'min' => '5.3.0',
47  'max' => '5.3.999'
48  )
49  );
50  }

◆ getXmlRepresentation()

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

Definition at line 21 of file class.ilChatroomExporter.php.

References $GLOBALS, and ilObjectFactory\getInstanceByObjId().

22  {
23  $chat = ilObjectFactory::getInstanceByObjId($a_id, false);
24  if (!($chat instanceof ilObjChatroom)) {
25  $GLOBALS['DIC']->logger()->root()->warning($a_id . ' is not id of chatroom instance. Skipped generation of export XML.');
26  return '';
27  }
28 
29  require_once 'Modules/Chatroom/classes/class.ilChatroomXMLWriter.php';
30  $writer = new ilChatroomXMLWriter($chat);
31  $writer->start();
32 
33  return $writer->getXml();
34  }
Class ilChatroomXMLWriter.
Class ilObjChatroom.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
+ Here is the call graph for this function:

◆ init()

ilChatroomExporter::init ( )

Definition at line 14 of file class.ilChatroomExporter.php.

15  {
16  }

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