48 Commits

Author SHA1 Message Date
Adrian Greeve
b0c6dc1cac MDL-34465 - lib - Replacing get_context_instance with context_XXXX::instance (group 8) 2012-07-27 10:10:46 +08:00
Jerome Mouneyrac
55e168e3a3 MDL-32581 Web services : should force type of external_format_value structure 2012-06-06 14:29:45 +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
50f9449faa MDL-32998 add warnings structure 2012-05-15 18:40:06 +08:00
Yang
03d38b9207 MDL-32998 add warnings structure 2012-05-15 13:40:58 +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
Jerome Mouneyrac
bc81eadb19 MDL-27547 When deleting a local plugin containing a built-in service, the built-in service is not deleted 2012-04-11 14:49:14 +08:00
Aparup Banerjee
1469dee12f MDL-31711 Documentation : changed usages of @property to @var for non-magic variables. 2012-03-27 16:01:14 +08:00
Sam Hemelryk
92fe97f922 Merged branch 'MDL-29277' of git://github.com/mouneyrac/moodle.git with improvements 2011-10-17 13:18:30 +13:00
Jerome Mouneyrac
9360256937 MDL-29277 when validate externallib function parameters or return values, build the path to the error into the debuginfo. This patch also revert the exception to the original invalid_parameter_exception and invalid_response_exception 2011-10-07 16:06:19 +08:00
Tim Hunt
048f3d32d6 MDL-28218 allow testclient.php to find the necessary form for services defined in plugins. 2011-07-25 20:04:19 +02:00
jerome mouneyrac
ceb1bad4ad webservice MDL-25444 indicate which field are unexpected in case of web service error 2010-11-30 01:55:17 +00:00
Petr Skoda
365a594107 MDL-24321 switching to stdClass in /lib/ 2010-09-21 08:07:44 +00:00
jerome mouneyrac
143c0abef2 webservice MDL-23536 return information when clean response throw an exception 2010-07-27 09:13:27 +00:00
Petr Skoda
78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
jerome mouneyrac
476c0e82d3 webservice MDL-12886 exception more explicit when clean response value fail 2010-07-14 07:33:26 +00:00
jerome mouneyrac
774b1b0ff0 webservice MDL-23144 support VALUE_DEFAULT empty array for single and multiple structure 2010-07-07 08:15:26 +00:00
Petr Skoda
df997f841f MDL-21782 reworked enrolment framework, the core infrastructure is in place, the basic plugins are all implemented; see the tracker issue for list of unfinished bits, expect more changes and improvements during the next week
AMOS START
    MOV [sendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage,enrol_self]
    MOV [configsendcoursewelcomemessage,core_admin],[sendcoursewelcomemessage_desc,enrol_self]
    MOV [enrolstartdate,core],[enrolstartdate,enrol_self]
    MOV [enrolenddate,core],[enrolenddate,enrol_self]
    CPY [welcometocourse,core],[welcometocourse,enrol_self]
    CPY [welcometocoursetext,core],[welcometocoursetext,enrol_self]
    MOV [notenrollable,core],[notenrollable,core_enrol]
    MOV [enrolenddaterror,core],[enrolenddaterror,enrol_self]
    MOV [enrolmentkeyhint,core],[passwordinvalidhint,enrol_self]
    MOV [coursemanager,core_admin],[coursecontact,core_admin]
    MOV [configcoursemanager,core_admin],[coursecontact_desc,core_admin]
    MOV [enrolledincourserole,core],[enrolledincourserole,enrol_manual]
    MOV [enrolme,core],[enrolme,core_enrol]
    MOV [unenrol,core],[unenrol,core_enrol]
    MOV [unenrolme,core],[unenrolme,core_enrol]
    MOV [enrolmentnew,core],[enrolmentnew,core_enrol]
    MOV [enrolmentnewuser,core],[enrolmentnewuser,core_enrol]
    MOV [enrolments,core],[enrolments,core_enrol]
    MOV [enrolperiod,core],[enrolperiod,core_enrol]
    MOV [unenrolroleusers,core],[unenrolroleusers,core_enrol]
AMOS END
2010-06-21 15:30:49 +00:00
Petr Skoda
23e7b7cce1 more comment typos 2010-05-22 19:06:34 +00:00
Jamie Pratt
2d0acbd5f9 MDL-21579 "Implement session token for embedded application" implemented a second type of session token linked to a session for use in applications embedded in web pages. 2010-04-28 13:16:58 +00:00
jerome mouneyrac
203fda8a4d web service MDL-21351 add a bit more information to the exception message when function implementation is missing 2010-04-22 01:51:24 +00:00
Petr Skoda
98da60215e MDL-22033 groupings now enabled unconditionally, groupmembersonly kept as experimental - this simplifies groups code logic a bit, user interface changes should not be significant because the groupings are not visible much until at least one created; hopefully the new description of groupmembersonly will have to preventsome gradebook complaints 2010-04-07 07:37:12 +00:00
Petr Skoda
4f0c2d0009 MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too 2010-03-31 07:41:31 +00:00
Jamie Pratt
2822f40ae2 MDL-21894 "move functionality to create a token into function in externallib.php so it can be used when creating tokens for embedded applications" also fixed MDL-21893 "Errors in code for checking capability when creating token for service with requiredcapability" which I came across while re 2010-03-22 14:20:18 +00:00
jerome mouneyrac
d07ff72d15 webservice MDL-21580 remove reponse hook, add response cleaning to the method body for all Zend servers. 2010-02-22 07:07:44 +00:00
jerome mouneyrac
eae18ab60c webservice MDL-21580 remove hard coded string from validate_parameters function, clean XML-RPC response from additional values, XML-RPC return an exception if a return value is wrong 2010-02-19 02:40:10 +00:00
jerome mouneyrac
5a1861ee32 webservice MDL-21510 added two new DEFINE values: NULL_ALLOWED and NULL_NOT_ALLOWED 2010-02-08 03:49:52 +00:00
jerome mouneyrac
aa7fbebd59 webservice MDL-17135 fix typo bug returning exception when we have good right on the context 2010-02-05 07:58:29 +00:00
jerome mouneyrac
e5752b7d5b webservice MDL-21511 display debug info when the exception return is invalid parameter type 2010-02-05 06:30:47 +00:00
jerome mouneyrac
559a5dbd1d webservice MDL-21511 add webservice_parameter_exception to indicate which external parameter is invalid 2010-02-05 04:10:36 +00:00
jerome mouneyrac
382b9ceab3 webservice MDL-21510 added three defines for the description of ws optional value:
VALUE_REQUIRED - if the parameter is not supplied, there is an error
VALUE_OPTIONAL - if the parameter is not supplied, then the param has no value
VALUE_DEFAULT - if the parameter is not supplied, then the default value is used
2010-02-05 02:58:24 +00:00
jerome mouneyrac
bff11d2953 webservice MDL-20805 add token authentication method to test client (+ use token constant) 2010-01-13 10:10:27 +00:00
Petr Skoda
4f0c6ad110 MDL-12886 inproved hadnling of bool ws params and return values 2009-10-26 22:39:08 +00:00
Petr Skoda
1942103f8b MDL-17135 external token access support 2009-10-26 19:10:20 +00:00
skodak
5593d2dc36 MDL-12886 refactored function return full external function info and improved reporting of access control problems 2009-10-20 22:30:18 +00:00
skodak
04d212ce4d MDL-12886 refacoring: the external_param is in fact value because we use it also in return structures 2009-10-07 21:49:03 +00:00
skodak
2965d271d9 MDL-12886 fixed param typo and adding new timeout method 2009-10-07 21:44:54 +00:00
skodak
551f442078 fixing copyright, this was in fact work of several people :-) 2009-10-07 10:15:07 +00:00
skodak
1d7db36f28 MDL-12886 more unit tests 2009-10-06 19:49:07 +00:00
skodak
c9c5cc81e9 MDL-12886 external lib parameter validation routine + some unit tests 2009-10-02 12:13:56 +00:00
skodak
c29cca3023 MDL-12886 WS param and return description classes 2009-10-01 21:53:14 +00:00
skodak
b038c32c82 MDL-12886 WS param and return description classes 2009-10-01 21:33:33 +00:00
skodak
893d7f0f11 MDL-12886 moved WS related stuff to webservice lib instead of external lib 2009-09-16 19:03:21 +00:00
skodak
d4e133554a MDL-12886 improved external API 2009-09-16 19:00:12 +00:00
skodak
5b658d18ad MDL-12886 api improvments - adding new descriptions functions - for now without the implemenatation, we need to decide first 2009-09-16 18:49:16 +00:00
skodak
1bea0c27d9 MDL-12886 api improvments - the actuall validation implementation is missing - we need to finalize the param description first 2009-09-16 18:06:31 +00:00
skodak
ab9a01f2b7 MDL-20293 strict param validation support - fixed group external lib methods 2009-09-15 20:31:08 +00:00
skodak
9a0df45a01 MDL-12886 new design of external service functions, groups api improved and known problems fixed - still work in progress with lots of todos - sorry 2009-09-14 23:52:08 +00:00