public function summarise_action(question_attempt_step $step) { if ($step->has_behaviour_var('helpme')) { return $this->summarise_helpme($step); } else { return parent::summarise_action($step); } }
public function summarise_action(question_attempt_step $step) { // Summarise hint action. foreach ($this->question->hints_available_for_student($step->get_qt_data()) as $hintkey) { $hintkey = $this->adjust_hintkey($hintkey); if ($step->has_behaviour_var($hintkey . 'btn')) { return $this->summarise_hint($step, $hintkey); } } return parent::summarise_action($step); }