public function process_finish(question_attempt_pending_step $pendingstep)
 {
     $keep = parent::process_finish($pendingstep);
     $fraction = $pendingstep->get_fraction();
     if ($keep == question_attempt::KEEP && $fraction != null && $fraction != 1) {
         $pendingstep->set_fraction(0);
         $pendingstep->set_state(question_state::$gradedwrong);
     }
     return $keep;
 }
Exemplo n.º 2
0
 public function summarise_action(question_attempt_step $step) {
     $summary = parent::summarise_action($step);
     if ($step->has_behaviour_var('certainty')) {
         $summary = question_cbm::summary_with_certainty($summary,
                 $step->get_behaviour_var('certainty'));
     }
     return $summary;
 }