Skip to content

Commit

Permalink
MDL-29106 new web service naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed Oct 24, 2011
1 parent 3a81b37 commit 5d1017e
Show file tree
Hide file tree
Showing 13 changed files with 1,417 additions and 370 deletions.
69 changes: 68 additions & 1 deletion course/externallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@

require_once("$CFG->libdir/externallib.php");

class moodle_course_external extends external_api {
/**
* Course functions
*/
class core_course_external extends external_api {

/**
* Returns description of method parameters
Expand Down Expand Up @@ -363,4 +366,68 @@ public static function create_courses_returns() {
);
}

}

/**
* Deprecated course functions
* @deprecated since Moodle 2.2 please use core_course_external instead
*/
class moodle_course_external extends external_api {

/**
* Returns description of method parameters
* @deprecated since Moodle 2.2 please use core_course_external::get_courses_parameters instead
* @return external_function_parameters
*/
public static function get_courses_parameters() {
return core_course_external::get_courses_parameters();
}

/**
* Get courses
* @param array $options
* @deprecated since Moodle 2.2 please use core_course_external::get_courses instead
* @return array
*/
public static function get_courses($options) {
return core_course_external::get_courses($options);
}

/**
* Returns description of method result value
* @deprecated since Moodle 2.2 please use core_course_external::get_courses_returns instead
* @return external_description
*/
public static function get_courses_returns() {
return core_course_external::get_courses_returns();
}

/**
* Returns description of method parameters
* @deprecated since Moodle 2.2 please use core_course_external::create_courses_parameters instead
* @return external_function_parameters
*/
public static function create_courses_parameters() {
return core_course_external::create_courses_parameters();
}

/**
* Create courses
* @deprecated since Moodle 2.2 please use core_course_external::create_courses instead
* @param array $courses
* @return array courses (id and shortname only)
*/
public static function create_courses($courses) {
return core_course_external::create_courses($courses);
}

/**
* Returns description of method result value
* @deprecated since Moodle 2.2 please use core_course_external::create_courses_returns instead
* @return external_description
*/
public static function create_courses_returns() {
return core_course_external::create_courses_returns();
}

}
Loading

0 comments on commit 5d1017e

Please sign in to comment.