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
 * Web service for mod stickynotes
19
 * @package    mod_stickynotes
20
 * @subpackage db
21
 * @copyright  2021 Sébastien Mehr <sebmehr.fr>
22
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 */
24
 
25
defined('MOODLE_INTERNAL') || die();
26
 
27
$functions = array(
28
 
29
        'mod_stickynotes_changing_note_position' => array(
30
                'classname'     => 'mod_stickynotes_external',
31
                'methodname'    => 'changing_note_position',
32
                'classpath'     => 'mod/stickynotes/externallib.php',
33
                'description'   => 'Changing note position via ajax',
34
                'type'          => 'write',
35
                'ajax'          => true,
36
                'capabilities'  => 'mod/stickynotes:updateownnote'
37
        ),
38
 
39
         'mod_stickynotes_get_notes_column_select' => array(
40
                'classname'   => 'mod_stickynotes_external',
41
                'methodname'  => 'get_notes_column_select',
42
                'classpath'   => 'mod/stickynotes/externallib.php',
43
                'description' => 'Return notes un a column for select menu',
44
                'type'        => 'read',
45
                'ajax' => true,
46
                'loginrequired' => true
47
          )
48
);