-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.php
executable file
·54 lines (47 loc) · 2.23 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* auth_nsdc
*
*
* @package auth
* @subpackage nsdc
* @copyright 2020 Saylor Academy
* @author John Azinheira
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
if ($ADMIN->fulltree) {
// Introductory explanation.
$settings->add(new admin_setting_heading('auth_nsdc/pluginname', '',
new lang_string('auth_nsdcdescription', 'auth_nsdc')));
// Are we using the production server?
$name = 'auth_nsdc/production';
$label = get_string('settingsnsdcproductionlabel', 'auth_nsdc');
$help = get_string('settingsnsdcproductionhelp', 'auth_nsdc');
$setting = new admin_setting_configcheckbox($name, $label, $help, 0, 1, 0);
$settings->add($setting);
// SSO Key.
$settings->add(new admin_setting_configtext('auth_nsdc/key', get_string('settingsnsdckeylabel', 'auth_nsdc'),
get_string('settingsnsdckeydescription', 'auth_nsdc'), '', PARAM_RAW));
// SSO IV.
$settings->add(new admin_setting_configtext('auth_nsdc/iv', get_string('settingsnsdcivlabel', 'auth_nsdc'),
get_string('settingsnsdcivdescription', 'auth_nsdc'), '', PARAM_RAW));
// Base email.
$settings->add(new admin_setting_configtext('auth_nsdc/baseemail', get_string('settingsnsdcbaseemaillabel', 'auth_nsdc'),
get_string('settingsnsdcbaseemaildescription', 'auth_nsdc'), '', PARAM_RAW));
// API Key.
$settings->add(new admin_setting_configtext('auth_nsdc/apikey', get_string('settingsnsdcapikeylabel', 'auth_nsdc'),
get_string('settingsnsdcapikeydescription', 'auth_nsdc'), '', PARAM_RAW));
}