Class containing completion API.
More...
|
string const | COMPLETION_EVENT_TYPE_DATE_COMPLETION_EXPECTED = 'expectcompletionon' |
| The completion expected on event.
|
|
Class containing completion API.
- Copyright
- 2017 Mark Nelson markn.nosp@m.@moo.nosp@m.dle.c.nosp@m.om
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ mark_course_completions_activity_criteria()
static core_completion\api::mark_course_completions_activity_criteria |
( |
| $userdata = null | ) |
|
|
static |
Mark users who completed course based on activity criteria.
- Parameters
-
array | $userdata | If set only marks specified user in given course else checks all courses/users. |
- Return values
-
int | Completion record id if $userdata is set, 0 else. |
- Since
- Moodle 4.0
◆ update_completion_date_event()
static core_completion\api::update_completion_date_event |
( |
| $cmid, |
|
|
| $modulename, |
|
|
| $instanceorid, |
|
|
| $completionexpectedtime ) |
|
static |
Creates, updates or deletes an event for the expected completion date.
- Parameters
-
int | $cmid | The course module id |
string | $modulename | The name of the module (eg. assign, quiz) |
stdClass | int | $instanceorid | The instance object or ID. |
int | null | $completionexpectedtime | The time completion is expected, null if not set |
- Return values
-
The documentation for this class was generated from the following file: