Events fired from Cron Job?

Re: Events fired from Cron Job?

by Altos Agency -
Number of replies: 0
Thank you for the suggestion.
I have a couple of questions on this api.

From the Docs:

$grading_info = grade_get_grades($courseid, 'mod', $modname, $modinstance->id, array_keys($users));

$grade_item_grademax = $grading_info->items[0]->grademax;
foreach ($users as $user) {
$user_final_grade = $grading_info->items[0]->grades[$user->id];
}


What would $modname be in this instance of the event?
What would $modinstance be?
are these Globals or do I need to set them?

It also looks like I need to get an array of all users who have taken the quiz?