@@ 5086-5089 (lines=4) @@ | ||
5083 | if ($debug) { |
|
5084 | error_log("reply " . print_r($reply, 1) . ""); |
|
5085 | } |
|
5086 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
5087 | $ans = $reply[$i]; |
|
5088 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
5089 | } |
|
5090 | } else { |
|
5091 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
5092 | } |
|
@@ 5096-5099 (lines=4) @@ | ||
5093 | } elseif ($answerType == MULTIPLE_ANSWER_COMBINATION) { |
|
5094 | if ($choice != 0) { |
|
5095 | $reply = array_keys($choice); |
|
5096 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
5097 | $ans = $reply[$i]; |
|
5098 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
5099 | } |
|
5100 | } else { |
|
5101 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
5102 | } |