Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]
Completion external API
Copyright: | 2015 Juan Leyva <juan@moodle.com> |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 585 lines (23 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_completion_external:: (15 methods):
update_activity_completion_status_manually_parameters()
update_activity_completion_status_manually()
update_activity_completion_status_manually_returns()
override_activity_completion_status_parameters()
override_activity_completion_status()
override_activity_completion_status_returns()
get_activities_completion_status_parameters()
get_activities_completion_status()
get_activities_completion_status_returns()
get_course_completion_status_parameters()
get_course_completion_status()
get_course_completion_status_returns()
mark_course_self_completed_parameters()
mark_course_self_completed()
mark_course_self_completed_returns()
Class: core_completion_external - X-Ref
Completion external functionsupdate_activity_completion_status_manually_parameters() X-Ref |
Describes the parameters for update_activity_completion_status_manually. return: external_function_parameters |
update_activity_completion_status_manually($cmid, $completed) X-Ref |
Update completion status for the current user in an activity, only for activities with manual tracking. param: int $cmid Course module id param: bool $completed Activity completed or not return: array Result and possible warnings |
update_activity_completion_status_manually_returns() X-Ref |
Describes the update_activity_completion_status_manually return value. return: external_single_structure |
override_activity_completion_status_parameters() X-Ref |
Describes the parameters for override_activity_completion_status. return: external_external_function_parameters |
override_activity_completion_status($userid, $cmid, $newstate) X-Ref |
Update completion status for a user in an activity. param: int $userid User id param: int $cmid Course module id param: int $newstate Activity completion return: array Array containing the current (updated) completion status. |
override_activity_completion_status_returns() X-Ref |
Describes the override_activity_completion_status return value. return: external_single_structure |
get_activities_completion_status_parameters() X-Ref |
Returns description of method parameters return: external_function_parameters |
get_activities_completion_status($courseid, $userid) X-Ref |
Get Activities completion status param: int $courseid ID of the Course param: int $userid ID of the User return: array of activities progress and warnings |
get_activities_completion_status_returns() X-Ref |
Returns description of method result value return: \core_external\external_description |
get_course_completion_status_parameters() X-Ref |
Returns description of method parameters return: external_function_parameters |
get_course_completion_status($courseid, $userid) X-Ref |
Get Course completion status param: int $courseid ID of the Course param: int $userid ID of the User return: array of course completion status and warnings |
get_course_completion_status_returns() X-Ref |
Returns description of method result value return: \core_external\external_description |
mark_course_self_completed_parameters() X-Ref |
Describes the parameters for mark_course_self_completed. return: external_function_parameters |
mark_course_self_completed($courseid) X-Ref |
Update the course completion status for the current user (if course self-completion is enabled). param: int $courseid Course id return: array Result and possible warnings |
mark_course_self_completed_returns() X-Ref |
Describes the mark_course_self_completed return value. return: external_single_structure |