David Monllao
3c1aa6fdfb
MDL-43535 webservices: Marking functions as deprecated
...
Also:
- We don't allow users to add deprecated functions to WS
- We show a debugging message when deprecated functions
are already being used in web services.
2015-02-09 05:42:22 +08:00
Frederic Massart
457b82f238
MDL-43337 enrol: Missing break in get_enrolled_users WS
2014-02-13 12:06:04 +08:00
apsdehal
578a39b841
MDL-43337 WebService: Missing break statement added
...
In function get_enrolled_users_with_capability
2014-02-13 11:37:22 +08:00
Damyon Wiese
74df2951d1
Revert "MDL-39876 Change get_record('course') calls to get_course"
...
This reverts commit ab7632b74c331540c90229bf03d13aa2e6bdd9be.
2013-08-21 13:42:30 +08:00
sam marshall
ab7632b74c
MDL-39876 Change get_record('course') calls to get_course
2013-08-15 11:31:20 +01:00
Rajesh Taneja
be9bf94e4a
MDL-40126 Enrolments: Implemented two webservices to get enrolment instance info
...
1. core_enrol_get_course_enrolment_methods() which returns all enrolment method instances
which implement get_enrol_info()
2. enrol_self_get_instance_info() will return information about self enrolment instance.
2013-07-29 15:07:37 +08:00
Sam Hemelryk
18474f822b
Merge branch 'MDL-40666-master' of git://github.com/danpoltawski/moodle
2013-07-23 14:09:08 +12:00
Dan Poltawski
fb5ce7d351
MDL-40666 enrol|cohort: PARAM_NUMBER -> PARAM_INT
...
PARAM_NUMBER is a float, our id's are int's
* Fix core_cohort_get_cohorts to specify correct return type on cohort id
* Fix core_enrol_get_enrolled_users_with_capability to specify correct
correct return type on user id
* Fix core_cohort_update_cohorts to specify the right parameter type
(int) on cohort id
* Add tests to verify the bug on core_cohort_update_cohorts param type.
2013-07-16 15:03:03 +08:00
Frederic Massart
2e4c0c9181
MDL-40424 libraries: Deprecate context_instance_preload_sql()
2013-07-12 17:41:49 +08:00
Ankit Agarwal
db314f34fb
MDL-40425 libraries: Remove context_instance_preload() from core
2013-07-09 15:55:51 +08:00
Ankit Agarwal
0601e0eef6
MDL-40402 libraries: Replace get_system_context() with context_system::instance() in core
2013-07-04 15:41:06 +08:00
Ankit Agarwal
1e63179285
MDL-39153 webservices: Provide alternative to passing contextids
...
As per our policy webservices should never have a required contextid, thuse providing a support for passing contextlevel and instanceid as parameters to the api
2013-06-18 14:15:54 +08:00
Ankit Agarwal
5b23d9adac
MDL-39152 webservices: Rename external_api::get_context() to external_api::get_context_from_params()
2013-06-17 15:18:49 +08:00
Ankit Agarwal
aac70ffc18
MDL-39152 webservices: Abstract context fetching
...
Since many apis in future will need to provide alternative method to fetch context, I have abstracted this bit into the core external_api class
2013-06-14 15:47:48 +08:00
Ankit Agarwal
3a68f79809
MDL-39152 webservices: Provide alternative to context id
...
As per our policy asking for and returning contextids is discouraged in webservices. So provide alternative parameters for the same
2013-06-14 11:50:25 +08:00
Jerome Mouneyrac
63c7be350b
MDL-34434 Change the texts saying that we'll be removing web service deprecated functions from 2.5
2013-04-17 12:13:04 +08:00
Petr Škoda
03216719c3
MDL-38753 tweak count SQL to make stupid Oracle happy
2013-04-08 12:33:49 +02:00
Sam Hemelryk
8422094d91
Merge branch 'MDL-35198' of git://github.com/mouneyrac/moodle
2012-10-16 11:23:24 +08:00
Jerome Mouneyrac
12fc8acf5b
MDL-35198 replace key_exists by array_key_exists
2012-09-26 15:20:18 +08:00
Dan Poltawski
21d3bfb39a
MDL-31859 - fix more trailing whitespace
2012-09-26 14:44:42 +08:00
Paul Charsley
b6b6c7acb6
MDL-31859 added get_enrolled_users_with_capability web service function
2012-09-21 09:37:06 +12:00
Ankit Agarwal
5fbe2118bc
MDL-34549 libraries: Changing strictness of context::instance_by_id() when required
2012-08-24 11:30:35 +08:00
Ankit Agarwal
d197ea4300
MDL-34549 libraries: Replace get_context_instance_by_id() by context::instance_by_id()
2012-08-24 11:30:10 +08:00
Crafton Williams
3a3f3b223f
MDL-33869 user_get_user_details: allow return of idnumber
2012-07-31 10:24:35 +08:00
Dan Poltawski
18d3e39072
Merge branch 'MDL-34461-master-integration' of git://github.com/FMCorz/moodle
2012-07-24 17:08:13 +08:00
Dan Poltawski
5082d87c03
Merge branch 'wip-mdl-32940' of git://github.com/rajeshtaneja/moodle
2012-07-24 13:39:59 +08:00
Frederic Massart
55bcef2954
MDL-34461 Librairies: Replaced deprecated get_context_instance()
2012-07-23 17:42:05 +08:00
Rajesh Taneja
61cca0b7fc
MDL-32940 libraries: Replaced deprecated PARAM_NUMBER with PARAM_FLOAT
2012-07-23 17:21:05 +08:00
Rajesh Taneja
071e68f93e
MDL-32945 libraries: Replaced deprecated PARAM_MULTILANG with PARAM_TEXT
2012-07-19 15:44:40 +08:00
Dan Poltawski
4413b48000
Merge branch 'MDL-33581' of git://github.com/mouneyrac/moodle
2012-06-13 17:45:27 +08:00
Jerome Mouneyrac
3297d57528
MDL-33581 missing parameter defaults for some external functions
2012-06-08 11:54:59 +08:00
Jerome Mouneyrac
93ce0e8296
MDL-32581 support additional format field with all text field in extrnal lib function + new possible ws params to decide how format is returned (which are stored in a singleton)
2012-05-31 12:31:27 +08:00
Jerome Mouneyrac
96d3b93ba3
MDL-33060 remove some get_string from exceptions
2012-05-18 14:45:15 +08:00
Jerome Mouneyrac
4615817d1c
MDL-30986 external API, check and update DocBlock
...
Conflicts:
group/externallib.php
2012-04-30 15:11:56 +08:00
Dongsheng Cai
3ed74dd1d6
MDL-29347 core_enrol_get_enrolled_users web service should limit the number of participants - Jerome/Dongsheng
2012-02-27 11:39:01 +08:00
Petr Skoda
d5b68e28b3
MDL-31178 fix broken core_enrol_external::get_enrolled_users()
2012-01-21 17:58:47 +01:00
Dongsheng Cai
ad7612f597
MDL-29476 web service improvements
...
1. moodle_enrol_get_users_courses should return number of participants,
2. moodle_user_get_users_by_courseid should limit the fields to be returned
2011-11-16 12:02:24 +08:00
Jerome Mouneyrac
f4a75854b7
MDL-30027 support no options + fix wrong param validation call
2011-11-01 15:22:28 +08:00
Sam Hemelryk
e6acc5518b
MDL-29106 white space clean up
2011-10-25 15:28:52 +13:00
Jerome Mouneyrac
5d1017e11d
MDL-29106 new web service naming convention
2011-10-24 11:06:00 +08:00
Petr Skoda
d20f655d59
MDL-28350 prevent bogus role assignment via externallib
2011-07-15 12:23:34 +02:00
Sam Hemelryk
9bf5d894de
Merge branch 'MDL-27564-wip' of git://github.com/mouneyrac/moodle with changes for MDL-27564
2011-06-08 10:38:29 +08:00
Jerome Mouneyrac
0e5fd1299a
MDL-27564 most parameter should have been optional - return more common information so no extra web service required - note that it could be good to return role and group for each user in each course (it would make sens and save some web service call)
2011-06-07 18:20:07 +08:00
Petr Skoda
3364dbb5a4
MDL-26249 external enrol functions: get list of courses user is enrolled in
2011-04-25 10:53:29 +02:00
jerome mouneyrac
b02b5fb74c
webservice MDL-23943 fix moodle_enrol_get_enrolled_users (return function, return value, sql result not unique, param name never used) + add unit test
2010-08-30 07:48:09 +00:00
jerome mouneyrac
cac3999e34
webservice MDL-23679 fix get_enrolled_users return description
2010-08-05 16:44:51 +00:00
Petr Skoda
9779585953
MDL-23502 oops, die()!
2010-07-31 20:30:29 +00:00
jerome mouneyrac
41e962ffb0
webservice MDL-23440 more explicit error message when validation context fail in some external functions.
2010-07-30 06:00:32 +00:00
Petr Skoda
12b8f43314
MDL-21524 fixed wrong var names, credit goes to Heiko Schach
2010-07-27 19:07:58 +00:00
jerome mouneyrac
c2d81ff458
enrolment MDL-21524 fix get_enrolled_users() web service parameter function
2010-06-24 13:18:34 +00:00