-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.php
70 lines (53 loc) · 3.46 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
/**
* Kaltura Local Plugin for Moodle 2
* Copyright (C) 2011 Catalyst IT (http://www.catalyst.net.nz)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @package local
* @subpackage kaltura
* @author Brett Wilkins <brett@catalyst.net.nz>
* @license http://www.gnu.org/licenses/agpl.html GNU Affero GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
if ($hassiteconfig) { // needs this condition or there is error on login page
$settings = new admin_settingpage('local_kaltura', get_string('pluginname', 'local_kaltura'));
$ADMIN->add('localplugins', $settings);
$settings->add(new admin_setting_heading('servicesettings', get_string('servicesettings', 'local_kaltura') , ''));
$settings->add(new admin_setting_configtext('local_kaltura/server_uri',
get_string('serveruri', 'local_kaltura'), get_string('serveruri-explanation', 'local_kaltura'), 'http://www.kaltura.com', PARAM_TEXT));
$settings->add(new admin_setting_configtext('local_kaltura/partner_id',
get_string('partnerid', 'local_kaltura'), null, null, PARAM_TEXT, 8));
$settings->add(new admin_setting_configpasswordunmask('local_kaltura/secret',
get_string('secret', 'local_kaltura'), null, null, PARAM_TEXT, 8));
$settings->add(new admin_setting_configpasswordunmask('local_kaltura/admin_secret',
get_string('adminsecret', 'local_kaltura'), null, null, PARAM_TEXT, 8));
$settings->add(new admin_setting_heading('pluginsettings', get_string('pluginsettings', 'local_kaltura') , ''));
$settings->add(new admin_setting_configtext('local_kaltura/player_selections',
get_string('playerselections', 'local_kaltura'), null, '1466342', PARAM_TEXT));
$settings->add(new admin_setting_configtext('local_kaltura/kupload_video',
get_string('kuploadvideo', 'local_kaltura'), null, '4436601', PARAM_TEXT, 8));
$settings->add(new admin_setting_configtext('local_kaltura/kupload_audio',
get_string('kuploadaudio', 'local_kaltura'), null, '4971641', PARAM_TEXT, 8));
$settings->add(new admin_setting_configtext('local_kaltura/upload_video_maxsize',
get_string('uploadvideomaxsize', 'local_kaltura'), null, '200', PARAM_TEXT, 8));
$settings->add(new admin_setting_configtext('local_kaltura/upload_audio_maxsize',
get_string('uploadaudiomaxsize', 'local_kaltura'), null, '200', PARAM_TEXT, 8));
$settings->add(new admin_setting_configtext('local_kaltura/student_upload_category',
get_string('studentcategory', 'local_kaltura'), get_string('studentcategory-explain', 'local_kaltura'), '', PARAM_TEXT));
$settings->add(new admin_setting_configselect('local_kaltura/identifier',
get_string('identifier', 'local_kaltura'), get_string('identifier-explanation', 'local_kaltura'),
'username', array('username'=>'username', 'email'=>'email', 'id'=>'id', 'idnumber'=>'idnumber')));
}