. /** * Process expirations task. * * @package enrol_paypal * @author Farhan Karmali * @copyright Farhan Karmali * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace enrol_paypal\task; defined('MOODLE_INTERNAL') || die(); /** * Process expirations task. * * @package enrol_paypal * @author Farhan Karmali * @copyright Farhan Karmali * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class process_expirations extends \core\task\scheduled_task { /** * Name for this task. * * @return string */ public function get_name() { return get_string('processexpirationstask', 'enrol_paypal'); } /** * Run task for processing expirations. */ public function execute() { $enrol = enrol_get_plugin('paypal'); $trace = new \text_progress_trace(); $enrol->process_expirations($trace); } }