-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.php
56 lines (41 loc) · 2.83 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
<?php
/**
* Global config file for the the Assessment Manager.
*
* @copyright © 2009-2010 University of London Computer Centre
* @author http://www.ulcc.ac.uk, http://moodle.ulcc.ac.uk
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package AssMgr
* @version 2.0
*/
global $CFG;
require_once($CFG->dirroot.'/blocks/assmgr/constants.php');
//include assessment manager db class
require_once($CFG->dirroot.'/blocks/assmgr/db/assmgr_db.php');
$dbc = new assmgr_db();
// Defaults for various constants
// Portfolio locking
$portlocking = new admin_setting_heading('block_assmgr/portfoliolocking', get_string('portfoliolocking', 'block_assmgr'), '');
$settings->add($portlocking);
$settings->add(new admin_setting_configtext('block_assmgr/defaultexpirytime', get_string('defaultexpirytime', 'block_assmgr'),
get_string('defaultexpirytimeconfig', 'block_assmgr'), 2100));
$settings->add(new admin_setting_configtext('block_assmgr/ajaxexpirytime', get_string('ajaxexpirytime', 'block_assmgr'),
get_string('ajaxexpirytimeconfig', 'block_assmgr'), 300));
//AJAX/flextable
$portlocking = new admin_setting_heading('block_assmgr/ajaxtables', get_string('ajaxtables', 'block_assmgr'), '');
$settings->add($portlocking);
$settings->add(new admin_setting_configtext('block_assmgr/defaulthozsize', get_string('defaulthozsize', 'block_assmgr'),
get_string('defaulthozsizeconfig', 'block_assmgr'), 10));
$settings->add(new admin_setting_configtext('block_assmgr/maxunits', get_string('maxunits', 'block_assmgr'),
get_string('maxunitsconfig', 'block_assmgr'), 5));
$settings->add(new admin_setting_configtext('block_assmgr/maxoutcomesshort', get_string('maxoutcomesshort', 'block_assmgr'),
get_string('maxoutcomesshortconfig', 'block_assmgr'), 5));
$settings->add(new admin_setting_configtext('block_assmgr/maxoutcomeslong', get_string('maxoutcomeslong', 'block_assmgr'),
get_string('maxoutcomeslongconfig', 'block_assmgr'), 8));
$settings->add(new admin_setting_configtext('block_assmgr/maxevidtypesshort', get_string('maxevidtypesshort', 'block_assmgr'),
get_string('maxevidtypesshortconfig', 'block_assmgr'), 5));
$settings->add(new admin_setting_configtext('block_assmgr/maxevidtypeslong', get_string('maxevidtypeslong', 'block_assmgr'),
get_string('maxevidtypeslongconfig', 'block_assmgr'), 10));
$settings->add(new admin_setting_configtext('block_assmgr/defaultverticalperpage', get_string('defaultverticalperpage', 'block_assmgr'),
get_string('defaultverticalperpageconfig', 'block_assmgr'), 10));
?>