How to obtain wheather the user viewed or not the certificate?

How to obtain wheather the user viewed or not the certificate?

by José Evaldo Gonçalves Lopes Filho -
Number of replies: 1

Hi, is there any function so that I know if the user viewed or downloaded his certificate ?

If possible, I just want the boolean result of this query.

 

Thanks.

 

Average of ratings: -
In reply to José Evaldo Gonçalves Lopes Filho

Re: How to obtain wheather the user viewed or not the certificate?

by Mark Nelson -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Jose,

You can simply query the certificate_issues table to see if a record exists for that user id and certificate id.

Regards,

Mark