File tree 4 files changed +36
-7
lines changed
4 files changed +36
-7
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ // This file is part of Moodle - http://moodle.org/
3
+ //
4
+ // Moodle is free software: you can redistribute it and/or modify
5
+ // it under the terms of the GNU General Public License as published by
6
+ // the Free Software Foundation, either version 3 of the License, or
7
+ // (at your option) any later version.
8
+ //
9
+ // Moodle is distributed in the hope that it will be useful,
10
+ // but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ // GNU General Public License for more details.
13
+ //
14
+ // You should have received a copy of the GNU General Public License
15
+ // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
+
17
+ namespace tool_dataflows \external ;
18
+
19
+ // Moved as part of https://tracker.moodle.org/browse/MDL-78049 so this is
20
+ // required to redirect sites using older versions of Moodle to the previous
21
+ // implementation.
22
+ // Once the base supported version is 4.2, this is no longer required.
23
+ if (class_exists (\core_external \external_api::class) && !class_exists (\external_api::class)) {
24
+ class_alias (\core_external \external_api::class, \external_api::class);
25
+ }
26
+
27
+ /**
28
+ * Backwards compatibility class for underlying core's external_api
29
+ */
30
+ class external_api extends \external_api {
31
+ }
Original file line number Diff line number Diff line change 31
31
* @copyright Catalyst IT, 2023
32
32
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
33
*/
34
- class trigger_dataflow extends \ external_api {
34
+ class trigger_dataflow extends external_api {
35
35
36
36
/**
37
37
* Returns description of method parameters
Original file line number Diff line number Diff line change 16
16
17
17
namespace tool_dataflows \local \step ;
18
18
19
- defined ('MOODLE_INTERNAL ' ) || die ();
20
-
21
19
use core_user ;
22
20
use core \session \manager ;
23
- use core_external \external_api ;
21
+ use tool_dataflows \ external \external_api ;
24
22
use moodle_exception ;
25
23
use Symfony \Component \Yaml \Yaml ;
26
24
use Throwable ;
Original file line number Diff line number Diff line change 25
25
26
26
defined ('MOODLE_INTERNAL ' ) || die ();
27
27
28
- $ plugin ->version = 2023063000 ;
29
- $ plugin ->release = 2023063000 ;
28
+ $ plugin ->version = 2023070500 ;
29
+ $ plugin ->release = 2023070500 ;
30
30
$ plugin ->requires = 2017051500 ; // Our lowest supported Moodle (3.3.0).
31
- $ plugin ->supported = [35 , 401 ]; // Available as of Moodle 3.9.0 or later.
31
+ $ plugin ->supported = [35 , 402 ]; // Available as of Moodle 3.9.0 or later.
32
32
// TODO $plugin->incompatible = ; // Available as of Moodle 3.9.0 or later.
33
33
$ plugin ->component = 'tool_dataflows ' ;
34
34
$ plugin ->maturity = MATURITY_ALPHA ;
You can’t perform that action at this time.
0 commit comments