So I need to get idnumber and some other information when a user_graded event fires. So I set it all up and error logged $event->get_grade() but it did not have idnumber. So I logged $event object and noticed it was in there but not sure how to access it. In the image below seems I can get what is in the [grade:protected] object just fine using get_grade() but the idnumber is in [recordsnapshots:core\event\base\private] array. Not sure how to access it, anyone got any ideas?
General developer forum
user_graded event object
This discussion has been locked so you can no longer reply to it.