Gitlab CSE Unil

axis_import_form.php 1.39 KB
Newer Older
M. Chardon's avatar
M. Chardon committed
1
2
<?php

M. Chardon's avatar
M. Chardon committed
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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/>.

M. Chardon's avatar
M. Chardon committed
18
/**
M. Chardon's avatar
M. Chardon committed
19
 * This file contains the axis_import_form class for the assignfeedback_editpdfplus plugin
M. Chardon's avatar
M. Chardon committed
20
 *
21
22
 * Form to import an axis
 *
M. Chardon's avatar
M. Chardon committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 * @package    assignfeedback_editpdfplus
 * @copyright  2017 Université de Lausanne
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

namespace assignfeedback_editpdfplus\form;

require_once("$CFG->libdir/formslib.php");

use moodleform;

class axis_import_form extends moodleform {

    protected function definition() {
        $mform = $this->_form;
        $mform->addElement('hidden', 'axeid', '');
M. Chardon's avatar
M. Chardon committed
39
        $mform->setType('axeid', PARAM_INTEGER);
M. Chardon's avatar
M. Chardon committed
40
41
42
43
44
45
46
47
    }

    //Custom validation should be added here
    function validation($data, $files) {
        return array();
    }

}