ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.ilSurveyQuestionPoolExporter.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4include_once("./Services/Export/classes/class.ilXmlExporter.php");
5
14{
15 private $ds;
16
20 function init()
21 {
22 }
23
24
33 public function getXmlRepresentation($a_entity, $a_schema_version, $a_id)
34 {
35 $refs = ilObject::_getAllReferences($a_id);
36 $sql_ref_id = current($refs);
37
38 include_once './Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php';
39 $spl = new ilObjSurveyQuestionPool($a_id,false);
40 $spl->loadFromDb();
41
42 include_once("./Modules/SurveyQuestionPool/classes/class.ilSurveyQuestionpoolExport.php");
43 $spl_exp = new ilSurveyQuestionpoolExport($spl, 'xml');
44 $zip = $spl_exp->buildExportFile();
45 $GLOBALS['ilLog']->write(__METHOD__.': Created zip file '.$zip);
46 }
47
55 function getValidSchemaVersions($a_entity)
56 {
57 return array (
58 "4.1.0" => array(
59 "namespace" => "http://www.ilias.de/Modules/SurveyQuestionPool/htlm/4_1",
60 "xsd_file" => "ilias_spl_4_1.xsd",
61 "uses_dataset" => false,
62 "min" => "4.1.0",
63 "max" => "")
64 );
65 }
66}
67
68?>
static _getAllReferences($a_id)
get all reference ids of object
Used for container export with tests.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
Export class for survey questionpools.
Xml Exporter class.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
Definition: CAS.php:276