function CourseObjectFulfillment::setComplete in Course 6
Same name and namespace in other branches
- 7.2 includes/CourseObjectFulfillment.inc \CourseObjectFulfillment::setComplete()
- 7 includes/CourseObjectFulfillment.inc \CourseObjectFulfillment::setComplete()
Set this fulfillment complete.
Parameters
bool $complete: Set to 0 to un-complete, 1 or omit to complete.
File
- includes/
course_object.core.inc, line 1014
Class
- CourseObjectFulfillment
- Parent class for course object fulfillment.
Code
function setComplete($complete = 1) {
if (!$this
->getOption('date_completed')) {
$this
->setOption('date_completed', time());
}
return $this
->setOption('complete', $complete);
}