2018-11-01 14:21:14 +00:00
|
|
|
<?php
|
|
|
|
|
2018-11-01 16:50:10 +00:00
|
|
|
// moodleform is defined in formslib.php
|
2018-11-01 14:21:14 +00:00
|
|
|
require_once("$CFG->libdir/formslib.php");
|
|
|
|
|
|
|
|
class send_text_form extends moodleform
|
|
|
|
{
|
2018-11-01 16:50:10 +00:00
|
|
|
// Add elements to form
|
2018-11-01 14:21:14 +00:00
|
|
|
public function definition()
|
|
|
|
{
|
|
|
|
global $CFG;
|
|
|
|
|
|
|
|
$mform = $this->_form; // Don't forget the underscore!
|
|
|
|
|
|
|
|
$mform->addElement('hidden', 'fileid', '');
|
|
|
|
$mform->setType('fileid', PARAM_INT);
|
|
|
|
$mform->addElement('hidden', 'cmid', '');
|
|
|
|
$mform->setType('cmid', PARAM_INT);
|
|
|
|
|
|
|
|
$this->add_action_buttons(false, get_string('pchkorg_submit', 'plagiarism_pchkorg'));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-11-01 16:50:10 +00:00
|
|
|
// Custom validation should be added here
|
2018-11-01 14:21:14 +00:00
|
|
|
function validation($data, $files)
|
|
|
|
{
|
|
|
|
return array();
|
|
|
|
}
|
2018-11-01 16:50:10 +00:00
|
|
|
}
|