. /** * This file contains the forms to create and edit an instance of this module * * @package tool_assignmentupgrade * @copyright 2012 NetSpot {@link http://www.netspot.com.au} * @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'); /** * Assignment upgrade batch operations form * * @package tool_assignmentupgrade * @copyright 2012 NetSpot {@link http://www.netspot.com.au} * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class tool_assignmentupgrade_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_assignmentupgrade')); // visible elements $mform->addElement('hidden', 'selectedassignments', '', array('class'=>'selectedassignments')); $mform->addElement('submit', 'upgradeselected', get_string('upgradeselected', 'tool_assignmentupgrade')); $mform->addElement('submit', 'upgradeall', get_string('upgradeall', 'tool_assignmentupgrade')); } }