• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apsolu / local_apsolu / 19634351883

24 Nov 2025 11:49AM UTC coverage: 9.346% (-0.04%) from 9.384%
19634351883

push

github

jboulen
feat(export): implémente la possibilité de sélectionner la liste des champs additionnels à afficher sur certaines vues

0 of 21 new or added lines in 2 files covered. (0.0%)

22 existing lines in 3 files now uncovered.

559 of 5981 relevant lines covered (9.35%)

0.23 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/classes/form/configuration/export_settings.php
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
namespace local_apsolu\form\configuration;
18

19
use moodleform;
20

21
defined('MOODLE_INTERNAL') || die;
×
22

23
require_once($CFG->libdir . '/formslib.php');
×
24

25
/**
26
 * Classe pour le formulaire permettant de configurer les paramètres d'exportation.
27
 *
28
 * @package    local_apsolu
29
 * @copyright  2025 Université Rennes 2
30
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
31
 */
32
class export_settings extends moodleform {
33
    /**
34
     * Définit les champs du formulaire.
35
     *
36
     * @return void
37
     */
38
    protected function definition() {
39
        global $CFG;
×
40

41
        $mform = $this->_form;
×
42

43
        [$defaults, $fields] = $this->_customdata;
×
44

NEW
45
        $displayselect = $mform->addElement(
×
NEW
46
            'select',
×
NEW
47
            'additionaldisplayfields',
×
NEW
48
            get_string('additional_fields_to_display', 'local_apsolu'),
×
NEW
49
            $fields,
×
NEW
50
            ['size' => 10, 'style' => 'width: 40em;']
×
NEW
51
        );
×
NEW
52
        $mform->addHelpButton('additionaldisplayfields', 'additional_fields_to_display', 'local_apsolu');
×
NEW
53
        $displayselect->setMultiple(true);
×
54

55
        $exporselect = $mform->addElement(
×
56
            'select',
×
UNCOV
57
            'additionalexportfields',
×
58
            get_string('additional_fields_to_export', 'local_apsolu'),
×
59
            $fields,
×
UNCOV
60
            ['size' => 10, 'style' => 'width: 40em;']
×
UNCOV
61
        );
×
UNCOV
62
        $mform->addHelpButton('additionalexportfields', 'additional_fields_to_export', 'local_apsolu');
×
63
        $exporselect->setMultiple(true);
×
64

65
        // Submit buttons.
UNCOV
66
        $buttonarray[] = &$mform->createElement('submit', 'submitbutton', get_string('savechanges'));
×
67

68
        $mform->addGroup($buttonarray, 'buttonar', '', [' '], false);
×
69

70
        // Set default values.
UNCOV
71
        $this->set_data($defaults);
×
72
    }
73
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc