芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/enrol/manual/classes/task/send_expiry_notifications.php
. /** * The send expiry notifications task. * * @package enrol_manual * @author Farhan Karmali
* @copyright Farhan Karmali * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace enrol_manual\task; defined('MOODLE_INTERNAL') || die(); /** * The send expiry notifications task. * * @package enrol_manual * @author Farhan Karmali
* @copyright Farhan Karmali * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class send_expiry_notifications extends \core\task\scheduled_task { /** * Name for this task. * * @return string */ public function get_name() { return get_string('sendexpirynotificationstask', 'enrol_manual'); } /** * Run task for sending expiry notifications. */ public function execute() { $enrol = enrol_get_plugin('manual'); $trace = new \text_progress_trace(); $enrol->send_expiry_notifications($trace); } }