|
Ultima modificación |
Ver Log
|
Rev |
Autor |
Línea Nro. |
Línea |
1434 |
ariadna |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
namespace local_moofactory_notification\task;
|
|
|
4 |
|
|
|
5 |
defined('MOODLE_INTERNAL') || die();
|
|
|
6 |
|
|
|
7 |
class send_modulesaccess_notification extends \core\task\scheduled_task {
|
|
|
8 |
public function get_name() {
|
|
|
9 |
return get_string('sendmoduleaccessnotifications', 'local_moofactory_notification');
|
|
|
10 |
}
|
|
|
11 |
public function execute() {
|
|
|
12 |
global $CFG;
|
|
|
13 |
|
|
|
14 |
require_once($CFG->dirroot . '/local/moofactory_notification/lib.php');
|
|
|
15 |
|
|
|
16 |
local_moofactory_notification_send_modulesaccess_notification();
|
|
|
17 |
}
|
|
|
18 |
}
|