| [ Index ] |
PHP Cross Reference of Unnamed Project |
[Source view] [Print] [Project Stats]
Badge award criteria
| 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: | 480 lines (18 kb) |
| Included or required: | 0 times |
| Referenced: | 1 time |
| Includes or requires: | 0 files |
| __construct($params) X-Ref |
| The base constructor param: array $params |
| build($params) X-Ref |
| Factory method for creating criteria class object param: array $params associative arrays varname => value return: award_criteria |
| get_title() X-Ref |
| Return criteria title return: string |
| config_options(&$mform, $param) X-Ref |
| Add appropriate parameter elements to the criteria form |
| config_form_criteria($data) X-Ref |
| Add appropriate criteria elements param: stdClass $data details of various criteria |
| mark_complete($userid) X-Ref |
| Mark this criteria as complete for a user param: int $userid User whose criteria is completed. |
| get_params($cid) X-Ref |
| Return criteria parameters param: int $critid Criterion ID return: array |
| delete() X-Ref |
| Delete this criterion |
| save($params = array() X-Ref |
| Saves intial criteria records with required parameters set up. param: array $params Values from the form or any other array. |
| make_clone($newbadgeid) X-Ref |
| Saves intial criteria records with required parameters set up. |
| Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |