mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-50853 mod_chat: New Web Service mod_chat_login_user
This commit is contained in:
parent
e28004e614
commit
1ca4cdf3e9
5 changed files with 175 additions and 2 deletions
39
mod/chat/db/services.php
Normal file
39
mod/chat/db/services.php
Normal file
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Chat external functions and service definitions.
|
||||
*
|
||||
* @package mod_chat
|
||||
* @category external
|
||||
* @copyright 2015 Juan Leyva <juan@moodle.com>
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @since Moodle 3.0
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$functions = array(
|
||||
|
||||
'mod_chat_login_user' => array(
|
||||
'classname' => 'mod_chat_external',
|
||||
'methodname' => 'login_user',
|
||||
'description' => 'Log a user into a chat room in the given chat.',
|
||||
'type' => 'write',
|
||||
'capabilities' => 'mod/chat:chat'
|
||||
),
|
||||
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue