ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilTestExporter.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 include_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_target_release, $a_id)
34  {
35  include_once './Modules/Test/classes/class.ilObjTest.php';
36  $tst = new ilObjTest($a_id,false);
37 
38  include_once("./Modules/Test/classes/class.ilTestExport.php");
39  $test_exp = new ilTestExport($tst, 'xml');
40  $zip = $test_exp->buildExportFile();
41 
42  $GLOBALS['ilLog']->write(__METHOD__.': Created zip file '.$zip);
43  }
44 
52  function getValidSchemaVersions($a_entity)
53  {
54  return array (
55  "4.1.0" => array(
56  "namespace" => "http://www.ilias.de/Modules/Test/htlm/4_1",
57  "xsd_file" => "ilias_tst_4_1.xsd",
58  "uses_dataset" => false,
59  "min" => "4.1.0",
60  "max" => "")
61  );
62  }
63 
64 }
65 
66 ?>