ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTestExportResults Class Reference

Class ilTestExportResults Generates XML export of ILIAS tests in QTI format. More...

+ Collaboration diagram for ilTestExportResults:

Public Member Functions

 __construct (&$tst_obj)
 toXML ()
 Returns a xml representation of the test results.

Private Attributes

 $objTest

Detailed Description

Class ilTestExportResults Generates XML export of ILIAS tests in QTI format.

  1. Export a list of users with their unique identifier mapping
  2. Export test results. All associated tables are listed in ilObjTest::removeAllTestEditings
Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
$Id$

Definition at line 16 of file class.ilTestExportResults.php.

Constructor & Destructor Documentation

ilTestExportResults::__construct ( $tst_obj)

Definition at line 20 of file class.ilTestExportResults.php.

{
$this->objTest = $tst_obj;
}

Member Function Documentation

ilTestExportResults::toXML ( )

Returns a xml representation of the test results.

Returns
string public

Definition at line 31 of file class.ilTestExportResults.php.

References ilXmlWriter\xmlHeader().

{
include_once("./Services/Xml/classes/class.ilXmlWriter.php");
$a_xml_writer = new ilXmlWriter;
// set xml header
$a_xml_writer->xmlHeader();
$a_xml_writer->xmlStartTag("results");
$attrs = array(
"id" => "il_".IL_INST_ID."_tst_".$this->objTest->getTestId(),
"title" => $this->objTest->getTitle()
);
$a_xml_writer->xmlEndTag("results");
$xml = $a_xml_writer->xmlDumpMem(FALSE);
return $xml;
}

+ Here is the call graph for this function:

Field Documentation

ilTestExportResults::$objTest
private

Definition at line 18 of file class.ilTestExportResults.php.


The documentation for this class was generated from the following file: