See Release Notes
Long Term Support Release
This file contains the course completion badge award criteria type class
Author: | Yuliya Bozhko <yuliya.bozhko@totaralms.com> |
Copyright: | 2012 onwards Totara Learning Solutions Ltd {@link http://www.totaralms.com/} |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 244 lines (10 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
award_criteria_course:: (6 methods):
__construct()
config_form_criteria()
get_details()
get_options()
review()
get_completed_criteria_sql()
Class: award_criteria_course - X-Ref
Badge award criteria -- award on course completion__construct($record) X-Ref |
No description |
config_form_criteria($data) X-Ref |
Add appropriate form elements to the criteria form param: moodleform $mform Moodle forms object param: stdClass $data details of various modules |
get_details($short = '') X-Ref |
Get criteria details for displaying to users return: string |
get_options(&$mform) X-Ref |
Add appropriate new criteria options to the form |
review($userid, $filtered = false) X-Ref |
Review this criteria and decide if it has been completed param: int $userid User whose criteria completion needs to be reviewed. param: bool $filtered An additional parameter indicating that user list return: bool Whether criteria is complete |
get_completed_criteria_sql() X-Ref |
Returns array with sql code and parameters returning all ids of users who meet this particular criterion. return: array list($join, $where, $params) |