You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
342 B
16 lines
342 B
<?php
|
|
namespace mod_certificate\task;
|
|
|
|
class cron_task extends \core\task\scheduled_task {
|
|
public function get_name() {
|
|
return get_string('crontask', 'mod_certificate');
|
|
}
|
|
|
|
public function execute() {
|
|
global $CFG;
|
|
require_once($CFG->dirroot . '/mod/certificate/lib.php');
|
|
certificate_cron();
|
|
}
|
|
}
|
|
|
|
?>
|
|
|