get the quiz id based on question attempt object

get the quiz id based on question attempt object

by Alan Padiernos -
Number of replies: 2

Hi,

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

Thanks

Average of ratings: -
In reply to Alan Padiernos

Re: get the quiz id based on question attempt object

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

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

quiz_attempts.quiz == quiz.id

In reply to Alan Padiernos

Re: get the quiz id based on question attempt object

by Alan Padiernos -
Hi Tim,

Thank you so much! You save my day!


Cheers,

Alan