Mass Exam Marker Plugin
A Moodle plugin to help mark massive exams.
|
Namespaces | |
local | |
Functions | |
create_grid_headers ($num_pages) | |
create_grid ($course_id, $num_booklets, $num_pages) | |
Variables | |
global | $PAGE |
global | $CFG |
global | $DB |
$gridnode = $PAGE->navigation->add(get_string('grid', 'local_memplugin'), new moodle_url('grid.php')) | |
$course_id = 3 | |
if($_GET['course_id']) | $num_booklets = $DB->count_records_select('mem_booklet_data', 'course_id=?', array($course_id)) |
$num_pages = $DB->get_field_select('mem_booklet_data', 'max_pages', 'course_id=?', array($course_id), IGNORE_MULTIPLE) | |
$grid_width = (($num_pages + 1) * 110) + 10 | |
create_grid | ( | $course_id, | |
$num_booklets, | |||
$num_pages | |||
) |
Creates the grid with exam booklets running row-wise and pages column-wise.
int | $course_id | The course id. |
int | $num_booklets | The number of exam booklets in the course. |
int | $num_pages | The number of pages in the exam. |
create_grid_headers | ( | $num_pages | ) |
Creates the grid header indicating page numbers.
int | $num_pages | The number of pages in the exam. |
global $CFG |
$course_id = 3 |
global $DB |
$grid_width = (($num_pages + 1) * 110) + 10 |
$gridnode = $PAGE->navigation->add(get_string('grid', 'local_memplugin'), new moodle_url('grid.php')) |
if ($_GET['course_id']) $num_booklets = $DB->count_records_select('mem_booklet_data', 'course_id=?', array($course_id)) |
$num_pages = $DB->get_field_select('mem_booklet_data', 'max_pages', 'course_id=?', array($course_id), IGNORE_MULTIPLE) |
global $PAGE |