Changed recent commit to new DB API 2.0
[moodle.git] / lang / en_utf8 / webservice.php
CommitLineData
87171bd8 1<?php // $Id$
9baf6825 2$string['activated'] = 'Activated';
3$string['activatedfunctions'] = 'Activated functions';
4$string['amfdebug'] = 'AMF server debug mode';
5$string['clicktoactivate'] = 'Click to activate';
6$string['clicktodeactivate'] = 'Click to deactivate';
7$string['component'] = 'Component';
8$string['createservicelabel'] = 'Create a custom service';
9$string['custom'] = 'Custom';
10$string['debugdisplayon'] = '\"Display debug messages\" is set On. The XMLRPC server will not work. The other web service servers could also return some problems. <br/>Alert the Moodle administrator to set it Off.';
11$string['enabled'] = 'Enabled';
12$string['fail'] = 'FAIL';
13$string['functionlist'] = 'list of web service functions';
14$string['functionname'] = 'Function name';
15$string['moodlepath'] = 'Moodle path';
16$string['ok'] = 'OK';
17$string['protocolenable'] = '$a[0] protocol enable';
18$string['protocols'] = 'Protocols';
19$string['save'] = 'Save';
20$string['servicelist'] = 'Services';
21$string['servicename'] = 'Service name';
87171bd8 22$string['soapdocumentation'] = '<H2>SOAP Manual</H2>
f83dfcf6 23 <b>1.</b> Call the method <b>get_token</b> on \"<i>http://remotemoodle/webservice/soap/server.php?wsdl</i>\"<br>
839bd5a2 24 The function parameter is an array: in PHP it would be array(\"username\" => \"wsuser\", \"password\" => \"wspassword\")<br>
87171bd8 25 Return value is a token (integer)<br>
26 <br>
839bd5a2 27 <b>2.</b> Then call a moodle web service method on \"<i>http://remotemoodle/webservice/soap/server.php?token=the_received_token&classpath=the_moodle_path&wsdl</i>\"<br>
87171bd8 28 Every method has only one parameter which is an array.<br>
29 <br>
30 For example in PHP for this specific function:<br>
31 Moodle path: <b>user</b><br>
839bd5a2 32 <b>tmp_delete_user</b>( string username , integer mnethostid )<br>
87171bd8 33 You will call something like:<br>
34 your_client->tmp_delete_user(array(\"username\" => \"username_to_delete\",\"mnethostid\" => 1))<br><br>
35';
9baf6825 36$string['systemsettings'] = 'Common settings';
37$string['usersettings'] = 'Users with web service permissions';
38$string['webservicesenable'] = 'Web services enable';
39$string['wsdeletefunction'] = '<b>$a->functionname</b> function has been deleted from the <b>$a->servicename</b> service.';
40$string['wsinsertfunction'] = '<b>$a->functionname</b> function has been inserted into the <b>$a->servicename</b> service.';
41$string['wspagetitle'] = 'Web services documentation';
42$string['wsuserreminder'] = 'Reminder: the Moodle administrator of this site needs to give you moodle/site:usewebservices capability.';
87171bd8 43$string['xmlrpcdocumentation'] = '<H2>XMLRPC Manual</H2>
f83dfcf6 44 <b>1.</b> Call the method <b>authentication.get_token</b> on \"<i>http://remotemoodle/webservice/xmlrpc/server.php</i>\"<br>
839bd5a2 45 The function parameter is an array: in PHP it would be array(\"username\" => \"wsuser\", \"password\" => \"wspassword\")<br>
87171bd8 46 Return value is a token (integer)<br>
47 <br>
839bd5a2 48 <b>2.</b> Then call a moodle web service method on \"<i>http://remotemoodle/webservice/xmlrpc/server.php?classpath=the_moodle_path&token=the_received_token</i>\"<br>
87171bd8 49 Every method has only one parameter which is an array.<br>
50 <br>
51 For example in PHP for this specific function:<br>
52 Moodle path: <b>user</b><br>
839bd5a2 53 <b>tmp_delete_user</b>( string username , integer mnethostid )<br>
87171bd8 54 You will call something like:<br>
55 your_client->call(\"user.tmp_delete_user\", array(array(\"username\" => \"username_to_delete\",\"mnethostid\" => 1)))<br>
56
57';
f7631e73 58
9baf6825 59//service names
60$string['user'] = "User";
61