Gitlab CSE Unil

axis_del_form.php 1.37 KB
Newer Older
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/>.

18
/**
M. Chardon's avatar
M. Chardon committed
19
 * This file contains the axis_del_form class for the assignfeedback_editpdfplus plugin
20
 *
21
22
 * Form to delete an axis
 *
23
24
25
26
27
28
29
30
31
32
33
34
 * @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_del_form extends moodleform {
35
36
    
    const HIDDENSTATE = "hidden";
37
38
39

    protected function definition() {
        $mform = $this->_form;
M. Chardon's avatar
M. Chardon committed
40
41
        $mform->addElement(self::HIDDENSTATE, 'axeid'); // Add elements to your form
        $mform->setType('axeid', PARAM_INT);      //Set type of element
42
43
44
    }

}