get the quiz id based on question attempt object

get the quiz id based on question attempt object

Alan Padiernos -
Vastausten määrä: 2

Hi,

Is it possible to get the quiz object or quiz id using the question attempt object?

Thanks

Arviointien keskiarvo: -
Vastaus Alan Padiernos

Re: get the quiz id based on question attempt object

Tim Hunt -
Kuva: Core developers Kuva: Documentation writers Kuva: Particularly helpful Moodlers Kuva: Peer reviewers Kuva: Plugin developers

question_attempts.questionusageid == question_usages.id ==quiz_attempts.uniqueid

quiz_attempts.quiz == quiz.id