I see out there thousands of posts about how to obtain various moodle objects by providing a user id. However I can't find anything about how to obtain the user id from a context.
I'm working on an advanced grading form. I have the controller, I have the context module, I have the page, I can even obtain the assignment object. Is there any way I can get the ID of the user that submitted the assignment for grading?
Thank you for your help!