ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
class.ilTestExporter.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 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_schema_version, $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 ?>
init()
Initialisation.
getXmlRepresentation($a_entity, $a_schema_version, $a_id)
Get xml representation.
Export class for tests.
Xml Exporter class.
Used for container export with tests.
getValidSchemaVersions($a_entity)
Returns schema versions that the component can export to.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
Definition: CAS.php:276