|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| is_complete () | |
| mark_enrolled ($timeenrolled=null) | |
| mark_inprogress ($timestarted=null) | |
| mark_complete ($timecomplete=null) | |
Static Public Member Functions | |
| static | fetch ($params) |
Data Fields | |
| $table = 'course_completions' | |
| $required_fields | |
| $userid | |
| $course | |
| $deleted | |
| $timenotified | |
| $timeenrolled | |
| $timestarted | |
| $timecompleted | |
| $reaggregate | |
Course completion status for a particular user/course
Definition at line 33 of file completion_completion.php.
| static fetch | ( | $ | params | ) | [static] |
Finds and returns a data_object instance based on params. abstract
| array | $params | associative arrays varname=>value |
Reimplemented from data_object.
Definition at line 116 of file completion_completion.php.

| is_complete | ( | ) |
Return status of this completion public
Definition at line 126 of file completion_completion.php.
| mark_complete | ( | $ | timecomplete = null | ) |
Mark this user complete in this course
This generally happens when the required completion criteria in the course are complete.
public
| integer | $timecomplete | Time completed (optional) |
Definition at line 192 of file completion_completion.php.
| mark_enrolled | ( | $ | timeenrolled = null | ) |
Mark this user as started (or enrolled) in this course
If the user is already marked as started, no change will occur
public
| integer | $timeenrolled | Time enrolled (optional) |
Definition at line 139 of file completion_completion.php.
| mark_inprogress | ( | $ | timestarted = null | ) |
Mark this user as inprogress in this course
If the user is already marked as inprogress, the time will not be changed
public
| integer | $timestarted | Time started (optional) |
Definition at line 163 of file completion_completion.php.
Definition at line 60 of file completion_completion.php.
| $deleted |
Definition at line 67 of file completion_completion.php.
| $reaggregate |
Definition at line 106 of file completion_completion.php.
| array $required_fields |
array('id', 'userid', 'course', 'deleted', 'timenotified', 'timeenrolled', 'timestarted', 'timecompleted', 'reaggregate')
Array of required table fields, must start with 'id'.
Reimplemented from data_object.
Definition at line 45 of file completion_completion.php.
| string $table = 'course_completions' |
| $timecompleted |
Definition at line 99 of file completion_completion.php.
| $timeenrolled |
Definition at line 83 of file completion_completion.php.
| $timenotified |
Definition at line 75 of file completion_completion.php.
| $timestarted |
Definition at line 91 of file completion_completion.php.
Definition at line 53 of file completion_completion.php.