ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
class.ilContainerExporter.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
5include_once './Services/Container/classes/class.ilContainerXmlWriter.php';
6include_once './Services/Export/classes/class.ilXmlExporter.php';
7
18{
19 private $writer = null;
20
24 public function __construct()
25 {
26
27 }
28
33 public function init()
34 {
35 }
36
44 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
45 {
46 $GLOBALS['ilLog']->write(__METHOD__.': Received id = '.$a_id);
48 $writer->write();
49 return $writer->xmlDumpMem(false);
50 }
51
59 public function getValidSchemaVersions($a_entity)
60 {
61 return array (
62 "4.1.0" => array(
63 "namespace" => "http://www.ilias.de/Modules/Folder/fold/4_1",
64 "xsd_file" => "ilias_fold_4_1.xsd",
65 "uses_dataset" => false,
66 "min" => "4.1.0",
67 "max" => "")
68 );
69 }
70}
71?>
container structure export
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml.
XML writer for container structure.
static _getAllReferences($a_id)
get all reference ids of object
Xml Exporter class.
$GLOBALS['ct_recipient']