1 <!-- likert question (aka multiple choice with no correct answer) -->
2 <item title="Multiple choice question" ident="ITEM_<?php echo $this->row['question_id']; ?>">
6 <fieldlabel>qmd_itemtype</fieldlabel>
7 <fieldentry>Logical Identifier</fieldentry>
12 <fieldlabel>qmd_questiontype</fieldlabel>
13 <fieldentry>Multiple-choice</fieldentry>
20 <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
22 <response_lid ident="RESPONSE<?php echo $this->row['question_id']; ?>" rcardinality="Single">
23 <render_choice shuffle="No" minnumber="1" maxnumber="1">
25 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
26 <response_label ident="Choice<?php echo $i; ?>">
28 <mattext texttype="text/html"><?php echo $this->row['choice_'.$i]; ?></mattext>
39 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
40 <respcondition title="CorrectResponse">
42 <varequal respident="RESPONSE<?php echo $this->row['question_id']; ?>">Choice<?php echo $i; ?></varequal>
44 <setvar varname="que_score" action="Set"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>