Take a look at the code in /completion/criteria/completion_criteria_course.php around line 150.
The constant COMPLETION_CRITERIA_TYPE_COURSE and the other similar values are defined in /completion/criteria/completion_criteria.php. You'll need those numbers to match them up in the criteriatype column in the mdl_course_completion_criteria table. Course completion is 8.
The constant COMPLETION_CRITERIA_TYPE_COURSE and the other similar values are defined in /completion/criteria/completion_criteria.php. You'll need those numbers to match them up in the criteriatype column in the mdl_course_completion_criteria table. Course completion is 8.