Hi all,
My problem is setting a default mark/fraction on new question attempt based on the last graded question attempt.
I would like to know if it is possible to set new fraction and set new state on already created attempt object?
$attemptobj = quiz_attempt::create($attemptid);
I tried this one but no luck:
$attemptobj->get_question_attempt($slot)->get_last_step()->set_fraction($fraction);
I've been trying to solve this for a week, but still I can't do it. Hope someone can help me.
Thanks.