Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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
/**
18
 * List of Web Services for the tool_usertours plugin.
19
 *
20
 * @package    tool_usertours
21
 * @copyright  2016 Andrew Nicols
22
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 */
24
 
25
defined('MOODLE_INTERNAL') || die();
26
 
27
$functions = [
28
    'tool_usertours_fetch_and_start_tour' => [
29
        'classname'       => 'tool_usertours\external\tour',
30
        'methodname'      => 'fetch_and_start_tour',
31
        'description'     => 'Fetch the specified tour',
32
        'type'            => 'read',
33
        'capabilities'    => '',
34
        'ajax'            => true,
35
    ],
36
 
37
    'tool_usertours_step_shown' => [
38
        'classname'       => 'tool_usertours\external\tour',
39
        'methodname'      => 'step_shown',
40
        'description'     => 'Mark the specified step as completed for the current user',
41
        'type'            => 'write',
42
        'capabilities'    => '',
43
        'ajax'            => true,
44
    ],
45
 
46
    'tool_usertours_complete_tour' => [
47
        'classname'       => 'tool_usertours\external\tour',
48
        'methodname'      => 'complete_tour',
49
        'description'     => 'Mark the specified tour as completed for the current user',
50
        'type'            => 'write',
51
        'capabilities'    => '',
52
        'ajax'            => true,
53
    ],
54
 
55
    'tool_usertours_reset_tour' => [
56
        'classname'       => 'tool_usertours\external\tour',
57
        'methodname'      => 'reset_tour',
58
        'description'     => 'Remove the specified tour',
59
        'type'            => 'write',
60
        'capabilities'    => '',
61
        'ajax'            => true,
62
    ],
63
];