Hi everyone,
i'm doing a work for university and I would like know where, which function, insert grades in database for assignaments.
Thank you for your help.
Hi Vidal,
It sounds like you want assign_grade_item_update(). If that's not what you're after, take a look at the Gradebook API and see if you can find what you need.
You could retrieve grades by polling <moodle>/admin/webservice/documentation.php on the core_grades_get_grades endpoint, however depending on your moodle version, one of the grade events listed at <moodle>/report/eventlist/index.php should help - possibly <moodle>/report/eventlist/eventdetail.php?eventname=\core\event\user_graded is what you're after:
|