If you take a look in lib/completionlib.php, the values for 'completionstate' are all defined:
COMPLETION_INCOMPLETE - 0
COMPLETION_COMPLETE - 1
COMPLETION_COMPLETE_PASS - 2
COMPLETION_COMPLETE_FAIL - 3
If you take a look in lib/completionlib.php, the values for 'completionstate' are all defined:
COMPLETION_INCOMPLETE - 0
COMPLETION_COMPLETE - 1
COMPLETION_COMPLETE_PASS - 2
COMPLETION_COMPLETE_FAIL - 3