| @@ 5234-5237 (lines=4) @@ | ||
| 5231 | if ($debug) { |
|
| 5232 | error_log("reply ".print_r($reply, 1).""); |
|
| 5233 | } |
|
| 5234 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5235 | $ans = $reply[$i]; |
|
| 5236 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5237 | } |
|
| 5238 | } else { |
|
| 5239 | Event::saveQuestionAttempt($questionScore, 0, $quesId, $exeId, 0, $this->id); |
|
| 5240 | } |
|
| @@ 5244-5247 (lines=4) @@ | ||
| 5241 | } elseif ($answerType == MULTIPLE_ANSWER_COMBINATION) { |
|
| 5242 | if ($choice != 0) { |
|
| 5243 | $reply = array_keys($choice); |
|
| 5244 | for ($i = 0; $i < sizeof($reply); $i++) { |
|
| 5245 | $ans = $reply[$i]; |
|
| 5246 | Event::saveQuestionAttempt($questionScore, $ans, $quesId, $exeId, $i, $this->id); |
|
| 5247 | } |
|
| 5248 | } else { |
|
| 5249 | Event::saveQuestionAttempt( |
|
| 5250 | $questionScore, |
|