mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
web service MDL-12886
* Remove description array => all these information are now into the phpdoc. Remove all call/reference to moodleexternal.php * Adapt our own REST server to these changes * Remove Zend REST server as it's going to be deprecated in Zend Framework 1.8 * Remove our own SOAP server as we use the Zend SOAP server
This commit is contained in:
parent
60cd5b5a34
commit
40f024c9f3
17 changed files with 457 additions and 835 deletions
|
@ -8,7 +8,6 @@
|
|||
* @author Ferran Recio
|
||||
*/
|
||||
|
||||
require_once(dirname(dirname(__FILE__)) . '/lib/moodleexternal.php');
|
||||
require_once(dirname(dirname(__FILE__)) . '/group/lib.php');
|
||||
require_once(dirname(dirname(__FILE__)) . '/lib/grouplib.php');
|
||||
|
||||
|
@ -18,11 +17,12 @@ require_once(dirname(dirname(__FILE__)) . '/lib/grouplib.php');
|
|||
*
|
||||
* WORK IN PROGRESS, DO NOT USE IT
|
||||
*/
|
||||
final class group_external extends moodle_external {
|
||||
final class group_external {
|
||||
|
||||
/**
|
||||
* Constructor - We set the description of this API in order to be access by Web service
|
||||
*/
|
||||
/*
|
||||
function __construct () {
|
||||
$this->descriptions = array();
|
||||
|
||||
|
@ -47,7 +47,7 @@ final class group_external extends moodle_external {
|
|||
'optionalparams' => array( ),
|
||||
'return' => array('result' => PARAM_BOOL));
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
/**
|
||||
* Creates a group
|
||||
|
@ -72,6 +72,13 @@ final class group_external extends moodle_external {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* add a group member
|
||||
* @param array $params
|
||||
* ->groupid int
|
||||
* ->userid int
|
||||
* @return boolean success
|
||||
*/
|
||||
static function tmp_get_group($params){
|
||||
|
||||
// @TODO: any capability to check?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue