Skip to content

Commit

Permalink
webservice MDL-20803 add a link to the web service documentation on t…
Browse files Browse the repository at this point in the history
…he 'enable documentation' setting option description.
  • Loading branch information
mouneyrac committed Jan 29, 2010
1 parent bdf40a4 commit 4b4b53a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion admin/settings/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@
if (empty($CFG->enablewebservices)) {
$temp->add(new admin_setting_heading('webservicesaredisabled', '', get_string('disabledwarning', 'webservice')));
}
$temp->add(new admin_setting_configcheckbox('enablewsdocumentation', get_string('enablewsdocumentation', 'admin'), get_string('configenablewsdocumentation', 'admin'), false));
$url = new moodle_url('/webservice/wsdoc.php');
$atag =html_writer::start_tag('a', array('href' => $url)).get_string('documentation', 'webservice').html_writer::end_tag('a');
$temp->add(new admin_setting_configcheckbox('enablewsdocumentation', get_string('enablewsdocumentation', 'admin'), get_string('configenablewsdocumentation', 'admin', $atag), false));
$ADMIN->add('webservicesettings', $temp);
/// links to protocol pages
$webservices_available = get_plugin_list('webservice');
Expand Down
2 changes: 1 addition & 1 deletion lang/en_utf8/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
$string['configenablestats'] = 'If you choose \'yes\' here, Moodle\'s cronjob will process the logs and gather some statistics. Depending on the amount of traffic on your site, this can take awhile. If you enable this, you will be able to see some interesting graphs and statistics about each of your courses, or on a sitewide basis.';
$string['configenabletrusttext'] = 'By default Moodle will always thoroughly clean text that comes from users to remove any possible bad scripts, media etc that could be a security risk. The Trusted Content system is a way of giving particular users that you trust the ability to include these advanced features in their content without interference. To enable this system, you need to first enable this setting, and then grant the Trusted Content permission to a specific Moodle role. Texts created or uploaded by such users will be marked as trusted and will not be cleaned before display.';
$string['configenablewebservices'] = 'Web services enable other systems to log in to this Moodle and perform operations. For extra security this feature should be disabled unless you are really using it.';
$string['configenablewsdocumentation'] = 'Enable auto-generation of web services documentation. A web service user can access to his own documentation without login into Moodle. It display the documentation for the enabled protocols only.';
$string['configenablewsdocumentation'] = 'Enable auto-generation of web services documentation. A web service user can access to his own $a without login into Moodle. It display the documentation for the enabled protocols only.';
$string['configenrolmentplugins'] = 'Please choose the enrolment plugins you wish to use. Don\'t forget to configure the settings properly.<br /><br />You have to indicate which plugins are enabled, and <strong>one</strong> plugin can be set as the default plugin for <em>interactive</em> enrolment. To disable interactive enrolment, set \"enrollable\" to \"No\" in required courses.';
$string['configerrorlevel'] = 'Choose the amount of PHP warnings that you want to be displayed. Normal is usually the best choice.';
$string['configexperimentalsplitrestore'] = 'If enabled, course backup files will be checked for XML errors and split into smaller parts for use in the restore process. This will result in improvements to restore robustness and execution times, particularly for medium to large course backups.';
Expand Down
1 change: 1 addition & 0 deletions lang/en_utf8/webservice.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
$string['deleteserviceconfirm'] = 'Do you really want to delete external service \"$a\"?';
$string['deletetokenconfirm'] = 'Do you really want to delete this web service token for <strong>$a->user</strong> on the service <strong>$a->service</strong>?';
$string['disabledwarning'] = 'All webs service protocols are disabled, the \Enable web services\" setting can be found in Advanced features.';
$string['documentation'] = 'web service documentation';
$string['editservice'] = 'Edit the service: $a->name (id: $a->id)';
$string['editaservice'] = 'Edit service';
$string['enabled'] = 'Enabled';
Expand Down

0 comments on commit 4b4b53a

Please sign in to comment.