Checking Assignment Attempts/Submissinos

Checking Assignment Attempts/Submissinos

by Ralfe Poisson -
Number of replies: 0
Hi,

I'm trying to programmatically retrieve information about a user's attempts or submissions of an assignment. Basically, I'm wanting to add this information to the grader report. I have managed to do this for quiz items by using the get_user_attempts() function from the quiz/lib.php function library. I see there is a function in assignment/lib.php called assignment_user_complete(), however, I'm not sure of how to use this and the API documentation is incomplete.

One of the parameters required to pass to this function is $mod. I just need to know how to create this object and what exactly it is.

Thanks,
Ralfe
Average of ratings: -