forked from vadimonus/moodle-block_graph_stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
executable file
·107 lines (95 loc) · 3.53 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?php
// This file is part of Moodle - http://moodle.org/
//
// 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/>.
/**
* This file is used to setting the block allover the site
*
* @package block_graph_stats
* @copyright 2011 Éric Bugnet with help of Jean Fruitet
* @copyright 2014 Wesley Ellis, Code Improvements.
* @copyright 2014 Vadim Dvorovenko
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
$settings->add(new admin_setting_configtext(
'block_graph_stats/daysnb',
get_string('daysnb', 'block_graph_stats'),
get_string('daysnb_help', 'block_graph_stats'),
'30',
PARAM_INT
));
$settings->add(new admin_setting_configtext(
'block_graph_stats/graphheight',
get_string('graphheight', 'block_graph_stats'),
get_string('graphheight_help', 'block_graph_stats'),
'200',
PARAM_INT
));
$settings->add(new admin_setting_configselect(
'block_graph_stats/style',
get_string('style', 'block_graph_stats'),
get_string('style_help', 'block_graph_stats'),
'area',
array(
'area' => get_string('area', 'block_graph_stats'),
'classic' => get_string('classic', 'block_graph_stats'))
));
$settings->add(new admin_setting_configcheckbox(
'block_graph_stats/multi',
get_string('multi', 'block_graph_stats'),
get_string('multi_help', 'block_graph_stats'),
'1'
));
$settings->add(new admin_setting_configcolourpicker(
'block_graph_stats/outer_background',
get_string('outer_background', 'block_graph_stats'),
get_string('outer_background_help', 'block_graph_stats'),
'#ffffff',
null
));
$settings->add(new admin_setting_configtext(
'block_graph_stats/border_width',
get_string('border_width', 'block_graph_stats'),
get_string('border_width_help', 'block_graph_stats'),
'0'
));
$settings->add(new admin_setting_configcolourpicker(
'block_graph_stats/inner_border',
get_string('inner_border', 'block_graph_stats'),
get_string('inner_border_help', 'block_graph_stats'),
'#C0C0C0',
null
));
$settings->add(new admin_setting_configcolourpicker(
'block_graph_stats/axis_colour',
get_string('axis_colour', 'block_graph_stats'),
get_string('axis_colour_help', 'block_graph_stats'),
'#C0C0C0',
null
));
$settings->add(new admin_setting_configcolourpicker(
'block_graph_stats/color1',
get_string('color1', 'block_graph_stats'),
get_string('color1_help', 'block_graph_stats'),
'#0000FF',
null
));
$settings->add(new admin_setting_configcolourpicker(
'block_graph_stats/color2',
get_string('color2', 'block_graph_stats'),
get_string('color2_help', 'block_graph_stats'),
'#00FF00',
null
));