Added the field grade to mdl_wooclap tables. if grade is = 0 there will be no grading, if > 0 this be will the max point.
update of wooclap_grade_item_update to handle all grading type.
migration from existing version to add the field grade with a default of 100 as before it was the only usecase
Other cleanup:
In all other mod from moodle the params of the function is the name of the plugin so here $wooclap (e.g lti mod has params is $lti, assign mod has param $assign )
simplify the create and update of activities we didn't need to create a new object.
Description
grade
tomdl_wooclap
tables. if grade is = 0 there will be no grading, if > 0 this be will the max point.wooclap_grade_item_update
to handle all grading type.Other cleanup:
mod
from moodle the params of the function is the name of the plugin so here$wooclap
(e.g lti mod has params is$lti
, assign mod has param$assign
)ℹ️ took example on LTI moodle mod for all those changes above: https://github.com/moodle/moodle/blob/23b86254d3182bb7cef45aa755a7a06a5d03faaa/mod/lti/lib.php#L555