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>
10 <fieldlabel>qmd_questiontype</fieldlabel>
11 <fieldentry>Multiple-choice</fieldentry>
14 <fieldlabel>cc_profile</fieldlabel>
15 <fieldentry>cc.mutliple_choice.v0p1</fieldentry>
22 <mattext texttype="text/html"><?php echo $this->row['question']; ?></mattext>
24 <response_lid ident="RESPONSE<?php echo $this->row['question_id']; ?>" rcardinality="Single">
25 <render_choice shuffle="No" minnumber="1" maxnumber="1">
27 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
28 <response_label ident="Choice<?php echo $i; ?>">
30 <mattext texttype="text/html"><?php echo $this->row['choice_'.$i]; ?></mattext>
41 <?php for ($i=0; $i < $this->num_choices; $i++): ?>
42 <respcondition title="CorrectResponse">
44 <varequal respident="RESPONSE<?php echo $this->row['question_id']; ?>">Choice<?php echo $i; ?></varequal>
46 <setvar varname="que_score" action="Set"><?php echo (isset($this->row['weight']))?$this->row['weight']:1; ?></setvar>