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.
Checking Assignment Attempts/Submissinos
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.