Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
 
17
/**
18
 * Amanote filter admin settings and defaults.
19
 *
20
 * @package     filter_amanote
21
 * @copyright   2020 Amaplex Software
22
 * @license     http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23
 */
24
 
25
defined('MOODLE_INTERNAL') || die;
26
 
27
if ($ADMIN->fulltree) {
28
 
29
    // General settings.
30
    $openingmodeoptions = [
31
 
32
        1 => get_string('openingmode_logonexttofile', 'filter_amanote'),
33
        2 => get_string('openingmode_iconnexttofile', 'filter_amanote'),
34
        3 => get_string('openingmode_iconnexttofilewithtext', 'filter_amanote'),
35
    ];
36
 
37
    $settings->add(new admin_setting_configselect('filter_amanote/openingmode',
38
        get_string('openingmode', 'filter_amanote'),
39
        get_string('openingmode_help', 'filter_amanote'),
40
        0, $openingmodeoptions));
41
 
42
    $targetoptions = [
43
 
44
        1 => get_string('target_inmoodlefullscreen', 'filter_amanote'),
45
        2 => get_string('target_inmoodle', 'filter_amanote'),
46
    ];
47
 
48
    $settings->add(new admin_setting_configselect('filter_amanote/target',
49
        get_string('target', 'filter_amanote'),
50
        get_string('target_help', 'filter_amanote'),
51
        0, $targetoptions));
52
 
53
    $settings->add(new admin_setting_configcheckbox('filter_amanote/preventdownload',
54
        get_string('preventdownload', 'filter_amanote'),
55
        get_string('preventdownload_help', 'filter_amanote'), 0));
56
 
57
    $settings->add(new admin_setting_configcheckbox('filter_amanote/saveinprivate',
58
        get_string('saveinprivate', 'filter_amanote'),
59
        get_string('saveinprivate_help', 'filter_amanote'), 1));
60
 
61
    $settings->add(new admin_setting_configcheckbox('filter_amanote/anonymous',
62
        get_string('anonymous', 'filter_amanote'),
63
        get_string('anonymous_help', 'filter_amanote'), 0));
64
 
65
    $settings->add(new admin_setting_configcheckbox('filter_amanote/worksheet',
66
        get_string('worksheet', 'filter_amanote'),
67
        get_string('worksheet_help', 'filter_amanote'), 0));
68
 
69
    $settings->add(new admin_setting_configtext('filter_amanote/key',
70
        get_string('key', 'filter_amanote'),
71
        get_string('key_help', 'filter_amanote'), ''));
72
 
73
    // Important information.
74
    $settings->add(new admin_setting_heading('amanoteimportantinformation',
75
        get_string('importantinformationheading', 'filter_amanote'),
76
        get_string('importantinformationdescription', 'filter_amanote')));
77
}