| [ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Cron job for reviewing and aggregating course completion criteria
| Author: | Aaron Barnes <[email protected]> |
| Copyright: | 2009 Catalyst IT Ltd |
| License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
| File Size: | 408 lines (13 kb) |
| Included or required: | 0 times |
| Referenced: | 1 time |
| Includes or requires: | 0 files |
| completion_cron() X-Ref |
| Update user's course completion statuses First update all criteria completions, then aggregate all criteria completions and update overall course completions |
| completion_cron_mark_started() X-Ref |
| Mark users as started if the config option is set return: void |
| completion_cron_criteria() X-Ref |
| Run installed criteria's data aggregation methods Loop through each installed criteria and run the cron() method if it exists return: void |
| completion_cron_completions() X-Ref |
| Aggregate each user's criteria completions |
| completion_cron_aggregate($method, $data, &$state) X-Ref |
| Aggregate criteria status's as per configured aggregation method param: int $method COMPLETION_AGGREGATION_* constant param: bool $data Criteria completion status param: bool|null $state Aggregation state |
| Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |