23 include_once
"./Modules/Test/classes/inc.AssessmentConstants.php";
53 $this->
object =& $a_object;
58 $feedback_allcorrect = $this->
object->getFeedbackGeneric(1);
59 $feedback_onenotcorrect = $this->
object->getFeedbackGeneric(0);
60 if (strlen($feedback_allcorrect . $feedback_onenotcorrect))
62 $a_xml_writer->xmlStartTag(
"resprocessing");
63 $a_xml_writer->xmlStartTag(
"outcomes");
64 $a_xml_writer->xmlStartTag(
"decvar");
65 $a_xml_writer->xmlEndTag(
"decvar");
66 $a_xml_writer->xmlEndTag(
"outcomes");
68 if (strlen($feedback_allcorrect))
73 $a_xml_writer->xmlStartTag(
"respcondition", $attrs);
75 $a_xml_writer->xmlStartTag(
"conditionvar");
77 "respident" =>
"points"
79 $a_xml_writer->xmlElement(
"varequal", $attrs, $this->object->getPoints());
80 $a_xml_writer->xmlEndTag(
"conditionvar");
83 "feedbacktype" =>
"Response",
84 "linkrefid" =>
"response_allcorrect"
86 $a_xml_writer->xmlElement(
"displayfeedback", $attrs);
87 $a_xml_writer->xmlEndTag(
"respcondition");
90 if (strlen($feedback_onenotcorrect))
95 $a_xml_writer->xmlStartTag(
"respcondition", $attrs);
97 $a_xml_writer->xmlStartTag(
"conditionvar");
98 $a_xml_writer->xmlStartTag(
"not");
100 "respident" =>
"points"
102 $a_xml_writer->xmlElement(
"varequal", $attrs, $this->object->getPoints());
103 $a_xml_writer->xmlEndTag(
"not");
104 $a_xml_writer->xmlEndTag(
"conditionvar");
107 "feedbacktype" =>
"Response",
108 "linkrefid" =>
"response_onenotcorrect"
110 $a_xml_writer->xmlElement(
"displayfeedback", $attrs);
111 $a_xml_writer->xmlEndTag(
"respcondition");
113 $a_xml_writer->xmlEndTag(
"resprocessing");
116 if (strlen($feedback_allcorrect))
119 "ident" =>
"response_allcorrect",
122 $a_xml_writer->xmlStartTag(
"itemfeedback", $attrs);
124 $a_xml_writer->xmlStartTag(
"flow_mat");
125 $this->
object->addQTIMaterial($a_xml_writer, $feedback_allcorrect);
126 $a_xml_writer->xmlEndTag(
"flow_mat");
127 $a_xml_writer->xmlEndTag(
"itemfeedback");
129 if (strlen($feedback_onenotcorrect))
132 "ident" =>
"response_onenotcorrect",
135 $a_xml_writer->xmlStartTag(
"itemfeedback", $attrs);
137 $a_xml_writer->xmlStartTag(
"flow_mat");
138 $this->
object->addQTIMaterial($a_xml_writer, $feedback_onenotcorrect);
139 $a_xml_writer->xmlEndTag(
"flow_mat");
140 $a_xml_writer->xmlEndTag(
"itemfeedback");
153 function toXML($a_include_header =
true, $a_include_binary =
true, $a_shuffle =
false, $test_output =
false, $force_image_references =
false)