|  | 
| const | COMPLETION_AGGREGATION_ALL 1 | 
|  | Course completion criteria aggregation method. 
 | 
|  | 
| const | COMPLETION_AGGREGATION_ANY 2 | 
|  | Course completion criteria aggregation method. 
 | 
|  | 
| const | COMPLETION_AND true | 
|  | Completion details should be ANDed together and you should return true if none apply. 
 | 
|  | 
| const | COMPLETION_COMPLETE 1 | 
|  | The user has completed this activity. 
 | 
|  | 
| const | COMPLETION_COMPLETE_FAIL 3 | 
|  | The user has completed this activity but their grade is less than the pass mark This is a completion state value (course_modules_completion/completionstate) 
 | 
|  | 
| const | COMPLETION_COMPLETE_FAIL_HIDDEN 4 | 
|  | Indicates that the user has received a failing grade for a hidden grade item. 
 | 
|  | 
| const | COMPLETION_COMPLETE_PASS 2 | 
|  | The user has completed this activity with a grade above the pass mark. 
 | 
|  | 
| const | COMPLETION_DISABLED 0 | 
|  | The completion system is not enabled in this site/course. 
 | 
|  | 
| const | COMPLETION_ENABLED 1 | 
|  | Include the required completion libraries. 
 | 
|  | 
| const | COMPLETION_GRADECHANGE -2 | 
|  | The user's grade has changed, so their new state might be COMPLETION_COMPLETE_PASS or COMPLETION_COMPLETE_FAIL. 
 | 
|  | 
| const | COMPLETION_HIDE_CONDITIONS 0 | 
|  | Completion conditions will be hidden from user. 
 | 
|  | 
| const | COMPLETION_INCOMPLETE 0 | 
|  | The user has not completed this activity. 
 | 
|  | 
| const | COMPLETION_NOT_VIEWED 0 | 
|  | User has not viewed this activity. 
 | 
|  | 
| const | COMPLETION_OR false | 
|  | Completion details should be ORed together and you should return false if none apply. 
 | 
|  | 
| const | COMPLETION_SHOW_CONDITIONS 1 | 
|  | Completion conditions will be displayed to user. 
 | 
|  | 
| const | COMPLETION_TRACKING_AUTOMATIC 2 | 
|  | Automatic completion tracking (system ticks box) is enabled for this activity This is a completion tracking option per-activity (course_modules/completion) 
 | 
|  | 
| const | COMPLETION_TRACKING_MANUAL 1 | 
|  | Manual completion tracking (user ticks box) is enabled for this activity This is a completion tracking option per-activity (course_modules/completion) 
 | 
|  | 
| const | COMPLETION_TRACKING_NONE 0 | 
|  | Completion tracking is disabled for this activity This is a completion tracking option per-activity (course_modules/completion) 
 | 
|  | 
| const | COMPLETION_UNKNOWN -1 | 
|  | The effect of this change to completion status is unknown. 
 | 
|  | 
| const | COMPLETION_VIEW_NOT_REQUIRED 0 | 
|  | User does not need to view this activity Whether view is required to create an activity (course_modules/completionview) 
 | 
|  | 
| const | COMPLETION_VIEW_REQUIRED 1 | 
|  | User must view this activity. 
 | 
|  | 
| const | COMPLETION_VIEWED 1 | 
|  | User has viewed this activity. 
 | 
|  |