-
Notifications
You must be signed in to change notification settings - Fork 1
/
migrateablecoursesbatchform.php
45 lines (37 loc) · 1.69 KB
/
migrateablecoursesbatchform.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
<?php
/**
* This file contains the forms to create and edit an instance of this module
* @package tool_legacyfilesmigration
* @copyright 2014 unistra {@link http://unistra.fr}
* @author Celine Perves <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die('Direct access to this script is forbidden.');
/** Include formslib.php */
require_once ($CFG->libdir.'/formslib.php');
/**
* legacy files migration batch operations form
*
* @package tool_legacyfilesmigration
* @copyright 2014 unistra {@link http://unistra.fr}
* @author Celine Perves <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
*/
class tool_legacyfilesmigration_batchoperations_form extends moodleform {
/**
* Define this form - is called from parent constructor
*/
function definition() {
$mform = $this->_form;
$instance = $this->_customdata;
$mform->addElement('header', 'general', get_string('batchoperations', 'tool_legacyfilesmigration'));
// visible elements
$mform->addElement('hidden', 'selectedcourses', '', array('class'=>'selectedcourses'));
$mform->addElement('hidden', 'selectedowners', '', array('class'=>'selectedowners'));
$mform->setType('selectedcourses', PARAM_RAW);
$mform->setType('selectedowners', PARAM_RAW);
$mform->addElement('submit', 'migrateselected', get_string('migrateselected', 'tool_legacyfilesmigration'));
$mform->addElement('submit', 'migrateall', get_string('migrateall', 'tool_legacyfilesmigration'));
}
}