|
37 | 37 | }
|
38 | 38 | }
|
39 | 39 |
|
40 |
| -$settings->add(new admin_setting_heading('qtype_wq/connectionsettings', |
41 |
| - get_string('connectionsettings', 'qtype_wq'), |
42 |
| - get_string('connectionsettings_text', 'qtype_wq'))); |
43 |
| - |
44 |
| -$settings->add(new admin_setting_configtext('qtype_wq/quizzesserviceurl', |
45 |
| - get_string('quizzesserviceurl', 'qtype_wq'), |
46 |
| - get_string('quizzesserviceurl_help', 'qtype_wq'), |
47 |
| - 'http://www.wiris.net/demo/quizzes', |
48 |
| - PARAM_URL)); |
49 |
| - |
50 |
| -$settings->add(new admin_setting_configtext('qtype_wq/quizzeseditorurl', |
51 |
| - get_string('quizzeseditorurl', 'qtype_wq'), |
52 |
| - get_string('quizzeseditorurl_help', 'qtype_wq'), |
53 |
| - 'http://www.wiris.net/demo/editor', |
54 |
| - PARAM_URL)); |
55 |
| - |
56 |
| -$settings->add(new admin_setting_configtext('qtype_wq/quizzeshandurl', |
57 |
| - get_string('quizzeshandurl', 'qtype_wq'), |
58 |
| - get_string('quizzeshandurl_help', 'qtype_wq'), |
59 |
| - 'http://www.wiris.net/demo/hand', |
60 |
| - PARAM_URL)); |
61 |
| - |
62 |
| -$settings->add(new admin_setting_configtext('qtype_wq/quizzeswirislauncherurl', |
63 |
| - get_string('quizzeswirislauncherurl', 'qtype_wq'), |
64 |
| - get_string('quizzeswirislauncherurl_help', 'qtype_wq'), |
65 |
| - 'http://stateful.wiris.net/demo/wiris', |
66 |
| - PARAM_URL)); |
67 |
| - |
68 |
| -$settings->add(new admin_setting_configtext('qtype_wq/quizzeswirisurl', |
69 |
| - get_string('quizzeswirisurl', 'qtype_wq'), |
70 |
| - get_string('quizzeswirisurl_help', 'qtype_wq'), |
71 |
| - 'http://www.wiris.net/demo/wiris', |
72 |
| - PARAM_URL)); |
| 40 | +$settings->add(new admin_setting_heading( |
| 41 | + 'qtype_wq/connectionsettings', |
| 42 | + get_string('connectionsettings', 'qtype_wq'), |
| 43 | + get_string('connectionsettings_text', 'qtype_wq') |
| 44 | +)); |
| 45 | + |
| 46 | +$settings->add(new admin_setting_configtext( |
| 47 | + 'qtype_wq/quizzesserviceurl', |
| 48 | + get_string('quizzesserviceurl', 'qtype_wq'), |
| 49 | + get_string('quizzesserviceurl_help', 'qtype_wq'), |
| 50 | + 'http://www.wiris.net/demo/quizzes', |
| 51 | + PARAM_URL |
| 52 | +)); |
| 53 | + |
| 54 | +$settings->add(new admin_setting_configtext( |
| 55 | + 'qtype_wq/quizzeseditorurl', |
| 56 | + get_string('quizzeseditorurl', 'qtype_wq'), |
| 57 | + get_string('quizzeseditorurl_help', 'qtype_wq'), |
| 58 | + 'http://www.wiris.net/demo/editor', |
| 59 | + PARAM_URL |
| 60 | +)); |
| 61 | + |
| 62 | +$settings->add(new admin_setting_configtext( |
| 63 | + 'qtype_wq/quizzeshandurl', |
| 64 | + get_string('quizzeshandurl', 'qtype_wq'), |
| 65 | + get_string('quizzeshandurl_help', 'qtype_wq'), |
| 66 | + 'http://www.wiris.net/demo/hand', |
| 67 | + PARAM_URL |
| 68 | +)); |
| 69 | + |
| 70 | +$settings->add(new admin_setting_configtext( |
| 71 | + 'qtype_wq/quizzeswirislauncherurl', |
| 72 | + get_string('quizzeswirislauncherurl', 'qtype_wq'), |
| 73 | + get_string('quizzeswirislauncherurl_help', 'qtype_wq'), |
| 74 | + 'http://stateful.wiris.net/demo/wiris', |
| 75 | + PARAM_URL |
| 76 | +)); |
| 77 | + |
| 78 | +$settings->add(new admin_setting_configtext( |
| 79 | + 'qtype_wq/quizzeswirisurl', |
| 80 | + get_string('quizzeswirisurl', 'qtype_wq'), |
| 81 | + get_string('quizzeswirisurl_help', 'qtype_wq'), |
| 82 | + 'http://www.wiris.net/demo/wiris', |
| 83 | + PARAM_URL |
| 84 | +)); |
73 | 85 |
|
74 | 86 | // Access provider option. If enabled only loged users can access to Wiris Quizzes services.
|
75 |
| -$settings->add(new admin_setting_configcheckbox('qtype_wq/access_provider_enabled', |
76 |
| - get_string('access_provider_enabled', 'qtype_wq'), |
77 |
| - get_string('access_provider_enabled_help', 'qtype_wq'), |
78 |
| - '0')); |
79 |
| - |
80 |
| -$settings->add(new admin_setting_heading('qtype_wq/compatibility_settings', |
81 |
| - get_string('compatibility_settings', 'qtype_wq'), |
82 |
| - get_string('compatibility_settings_text', 'qtype_wq'))); |
83 |
| - |
84 |
| -$settings->add(new admin_setting_configcheckbox('qtype_wq/filtercodes_compatibility', |
85 |
| - get_string('filtercodes_compatibility_enabled', 'qtype_wq'), |
86 |
| - get_string('filtercodes_compatibility_enabled_help', 'qtype_wq'), |
87 |
| - '0')); |
88 |
| - |
89 |
| -$settings->add(new admin_setting_heading('qtype_wq/troubleshooting_settings', |
90 |
| - get_string('troubleshooting_settings', 'qtype_wq'), |
91 |
| - get_string('troubleshooting_settings_text', 'qtype_wq'))); |
92 |
| - |
93 |
| -$settings->add(new admin_setting_configcheckbox('qtype_wq/debug_mode_enabled', |
94 |
| - get_string('debug_mode_enabled', 'qtype_wq'), |
95 |
| - get_string('debug_mode_enabled_help', 'qtype_wq'), |
96 |
| - '0')); |
| 87 | +$settings->add(new admin_setting_configcheckbox( |
| 88 | + 'qtype_wq/access_provider_enabled', |
| 89 | + get_string('access_provider_enabled', 'qtype_wq'), |
| 90 | + get_string('access_provider_enabled_help', 'qtype_wq'), |
| 91 | + '0' |
| 92 | +)); |
| 93 | + |
| 94 | +$settings->add(new admin_setting_heading( |
| 95 | + 'qtype_wq/compatibility_settings', |
| 96 | + get_string('compatibility_settings', 'qtype_wq'), |
| 97 | + get_string('compatibility_settings_text', 'qtype_wq') |
| 98 | +)); |
| 99 | + |
| 100 | +$settings->add(new admin_setting_configcheckbox( |
| 101 | + 'qtype_wq/filtercodes_compatibility', |
| 102 | + get_string('filtercodes_compatibility_enabled', 'qtype_wq'), |
| 103 | + get_string('filtercodes_compatibility_enabled_help', 'qtype_wq'), |
| 104 | + '0' |
| 105 | +)); |
| 106 | + |
| 107 | +$settings->add(new admin_setting_heading( |
| 108 | + 'qtype_wq/troubleshooting_settings', |
| 109 | + get_string('troubleshooting_settings', 'qtype_wq'), |
| 110 | + get_string('troubleshooting_settings_text', 'qtype_wq') |
| 111 | +)); |
| 112 | + |
| 113 | +$settings->add(new admin_setting_configcheckbox( |
| 114 | + 'qtype_wq/debug_mode_enabled', |
| 115 | + get_string('debug_mode_enabled', 'qtype_wq'), |
| 116 | + get_string('debug_mode_enabled_help', 'qtype_wq'), |
| 117 | + '0' |
| 118 | +)); |
| 119 | + |
| 120 | +$settings->add(new admin_setting_configcheckbox( |
| 121 | + 'qtype_wq/log_server_errors', |
| 122 | + get_string('log_server_errors', 'qtype_wq'), |
| 123 | + get_string('log_server_errors_help', 'qtype_wq'), |
| 124 | + '0' |
| 125 | +)); |
97 | 126 |
|
98 | 127 |
|
99 | 128 | if ($CFG->version >= 2012120300 && $CFG->version < 2013051400) {
|
|
0 commit comments