ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilTestExportResults.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 
17 {
18  private $objTest;
19 
20  function __construct(&$tst_obj)
21  {
22  $this->objTest = $tst_obj;
23  }
24 
31  public function toXML()
32  {
33  include_once("./Services/Xml/classes/class.ilXmlWriter.php");
34  $a_xml_writer = new ilXmlWriter;
35  // set xml header
36  $a_xml_writer->xmlHeader();
37  $a_xml_writer->xmlStartTag("results");
38 
39  $attrs = array(
40  "id" => "il_".IL_INST_ID."_tst_".$this->objTest->getTestId(),
41  "title" => $this->objTest->getTitle()
42  );
43 
44  $a_xml_writer->xmlEndTag("results");
45  $xml = $a_xml_writer->xmlDumpMem(FALSE);
46  return $xml;
47  }
48 }
49 
50 ?>