mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
webservice MDL-21466 add information about setting the debug mode to NORMAL for using the web service test client
This commit is contained in:
parent
85b4c44745
commit
bdf40a4c63
@ -88,7 +88,11 @@ if (!$function or !$protocol) {
|
||||
admin_externalpage_print_header();
|
||||
echo $OUTPUT->heading(get_string('testclient', 'webservice'));
|
||||
echo $OUTPUT->box_start();
|
||||
echo get_string('testclientdescription', 'webservice');
|
||||
$url = new moodle_url('/admin/settings.php?section=debugging');
|
||||
$atag =html_writer::start_tag('a', array('href' => $url)).get_string('debug', 'admin').html_writer::end_tag('a');
|
||||
$descparams->atag = $atag;
|
||||
$descparams->mode = get_string('debugnormal', 'admin');
|
||||
echo get_string('testclientdescription', 'webservice', $descparams);
|
||||
echo $OUTPUT->box_end();
|
||||
|
||||
$mform->display();
|
||||
|
@ -108,7 +108,7 @@ $string['serviceusers'] = 'Authorised users';
|
||||
$string['serviceusersmatching'] = 'Authorised users matching';
|
||||
$string['serviceuserssettings'] = 'Change settings for the authorised users';
|
||||
$string['testclient'] = 'Web service test client';
|
||||
$string['testclientdescription'] = 'The web service test client <strong>executes</strong> the functions for <strong>REAL</strong>. Do not test functions that you don\'t know.<br/>Notice: all existing web service functions are not yet implemented into the test client. Also note that in order to check that a user cannot access some functions, you can test some functions that you didn\'t allow.';
|
||||
$string['testclientdescription'] = '* The web service test client <strong>executes</strong> the functions for <strong>REAL</strong>. Do not test functions that you don\'t know. <br/>* All existing web service functions are not yet implemented into the test client. <br/>* In order to check that a user cannot access some functions, you can test some functions that you didn\'t allow.<br/>* To see clearer error messages set the debugging to <strong>$a->mode</strong> into $a->atag';
|
||||
$string['testwithtestclient'] = 'Test the service';
|
||||
$string['testauserwithtestclientdescription'] = 'Simulate external access to the service using the web service test client. Before going there, log on as a user set with the "moodle/webservice:createtoken" capability, and get his security key (token) from his "my moodle" block. You will use this token in the test client. In the test client, also choose an enabled protocol with the token authentication. <strong>Warning: the functions that you test WILL BE EXECUTED for this user, be carefull what you choose to test!!!</strong>';
|
||||
$string['testwithtestclientdescription'] = 'Simulate external access to the service using the web service test client. Use an enabled protocol with token authentication. <strong>Warning: the functions that you test WILL BE EXECUTED, be carefull what you choose to test!!!</strong>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user