Mass Exam Marker Plugin
A Moodle plugin to help mark massive exams.
|
Public Member Functions | |
get_name () | |
is_enabled () | |
get_form_elements ($grade, MoodleQuickForm $mform, stdClass $data) | |
get_form_elements_for_user ($grade, MoodleQuickForm $mform, stdClass $data, $userid) | |
view_summary (stdClass $grade, &$showviewlink) | |
view (stdClass $grade) | |
supports_quickgrading () | |
get_quickgrading_html ($userid, $grade) | |
delete_instance () | |
is_empty (stdClass $grade) | |
get_file_areas () | |
can_upgrade ($type, $version) | |
upgrade_settings (context $oldcontext, stdClass $oldassignment, &$log) | |
upgrade (context $oldcontext, stdClass $oldassignment, stdClass $oldsubmission, stdClass $grade, &$log) | |
edit_comment_page ($submissionid, $pageno, $enableedit=true) | |
show_previous_comments ($submissionid) | |
create_response_pdf ($submissionid) | |
update_comment_page ($submissionid, $pageno) | |
clear_image_cache ($submissionid, $nextaction) | |
browse_images ($submissionid, $pageno) | |
delete_feedback ($submission) | |
get_name () | |
is_enabled () | |
get_form_elements ($grade, MoodleQuickForm $mform, stdClass $data) | |
get_form_elements_for_user ($grade, MoodleQuickForm $mform, stdClass $data, $userid) | |
view_summary (stdClass $grade, &$showviewlink) | |
view (stdClass $grade) | |
supports_quickgrading () | |
get_quickgrading_html ($userid, $grade) | |
delete_instance () | |
is_empty (stdClass $grade) | |
get_file_areas () | |
can_upgrade ($type, $version) | |
upgrade_settings (context $oldcontext, stdClass $oldassignment, &$log) | |
upgrade (context $oldcontext, stdClass $oldassignment, stdClass $oldsubmission, stdClass $grade, &$log) | |
edit_comment_page ($submissionid, $pageno, $enableedit=true) | |
show_previous_comments ($submissionid) | |
create_response_pdf ($submissionid) | |
update_comment_page ($submissionid, $pageno) | |
clear_image_cache ($submissionid, $nextaction) | |
browse_images ($submissionid, $pageno) | |
delete_feedback ($submission) | |
Static Public Member Functions | |
static | cron () |
static | cron () |
Protected Member Functions | |
get_rownum () | |
get_userid_because_assign_really_does_not_want_to_tell_me () | |
get_submission ($userid, $attemptnumber) | |
annotate_link ($submission, $teamsubmission) | |
encode_return_params () | |
response_link ($submission, $teamsubmission, $deletelink=false) | |
return_url () | |
output_controls ($submission, $user, $pageno, $enableedit, $showprevious) | |
output_pageselector ($submission, $pageno) | |
output_toolbar () | |
get_temp_folder ($submissionid) | |
get_page_image ($pageno, $submission) | |
get_subfolder () | |
get_rownum () | |
get_userid_because_assign_really_does_not_want_to_tell_me () | |
get_submission ($userid, $attemptnumber) | |
annotate_link ($submission, $teamsubmission) | |
encode_return_params () | |
response_link ($submission, $teamsubmission, $deletelink=false) | |
return_url () | |
output_controls ($submission, $user, $pageno, $enableedit, $showprevious) | |
output_pageselector ($submission, $pageno) | |
output_toolbar () | |
get_temp_folder ($submissionid) | |
get_page_image ($pageno, $submission) | |
get_subfolder () | |
Static Protected Member Functions | |
static | get_image_details ($file, $pagecount) |
static | get_image_details ($file, $pagecount) |
|
protected |
Return a link to annotate the given submission (uses the 'team submission' if set, otherwise uses the individual submission)
$submission | |
$teamsubmission |
|
protected |
Return a link to annotate the given submission (uses the 'team submission' if set, otherwise uses the individual submission)
$submission | |
$teamsubmission |
browse_images | ( | $submissionid, | |
$pageno | |||
) |
Output an image browser for all the pages in the given submission. (Intended for debugging purposes)
$submissionid | |
$pageno |
browse_images | ( | $submissionid, | |
$pageno | |||
) |
Output an image browser for all the pages in the given submission. (Intended for debugging purposes)
$submissionid | |
$pageno |
can_upgrade | ( | $type, | |
$version | |||
) |
Return true if this plugin can upgrade an old Moodle 2.2 assignment of this type and version.
string | $type | old assignment subtype |
int | $version | old assignment version |
can_upgrade | ( | $type, | |
$version | |||
) |
Return true if this plugin can upgrade an old Moodle 2.2 assignment of this type and version.
string | $type | old assignment subtype |
int | $version | old assignment version |
clear_image_cache | ( | $submissionid, | |
$nextaction | |||
) |
Delete all generated images for a particular submission. (Intended for use if there is a problem with the generated images).
$submissionid | |
$nextaction |
clear_image_cache | ( | $submissionid, | |
$nextaction | |||
) |
Delete all generated images for a particular submission. (Intended for use if there is a problem with the generated images).
$submissionid | |
$nextaction |
create_response_pdf | ( | $submissionid | ) |
Generate a new PDF with the original submission + annotations
$submissionid |
create_response_pdf | ( | $submissionid | ) |
Generate a new PDF with the original submission + annotations
$submissionid |
|
static |
Delete old page image files after 3 weeks.
|
static |
Delete old page image files after 3 weeks.
delete_feedback | ( | $submission | ) |
delete_feedback | ( | $submission | ) |
delete_instance | ( | ) |
The assignment has been deleted - cleanup
delete_instance | ( | ) |
The assignment has been deleted - cleanup
edit_comment_page | ( | $submissionid, | |
$pageno, | |||
$enableedit = true |
|||
) |
Output the page for annotating the PDF
int | $submissionid | - the submission to annotate |
int | $pageno | - the page to start on |
bool | $enableedit | - true if the editing interface should be enabled (overridden if the user does not have the required capabilities. |
edit_comment_page | ( | $submissionid, | |
$pageno, | |||
$enableedit = true |
|||
) |
Output the page for annotating the PDF
int | $submissionid | - the submission to annotate |
int | $pageno | - the page to start on |
bool | $enableedit | - true if the editing interface should be enabled (overridden if the user does not have the required capabilities. |
|
protected |
Encode the 'return parameters', so they can be passed on to the annotation page.
|
protected |
Encode the 'return parameters', so they can be passed on to the annotation page.
get_file_areas | ( | ) |
Get file areas returns a list of areas this plugin stores files
get_file_areas | ( | ) |
Get file areas returns a list of areas this plugin stores files
get_form_elements | ( | $grade, | |
MoodleQuickForm | $mform, | ||
stdClass | $data | ||
) |
Get form elements for grading form - retained so that plugin will be compatible with Moodle 2.3
stdClass | $grade | |
MoodleQuickForm | $mform | |
stdClass | $data |
get_form_elements | ( | $grade, | |
MoodleQuickForm | $mform, | ||
stdClass | $data | ||
) |
Get form elements for grading form - retained so that plugin will be compatible with Moodle 2.3
stdClass | $grade | |
MoodleQuickForm | $mform | |
stdClass | $data |
get_form_elements_for_user | ( | $grade, | |
MoodleQuickForm | $mform, | ||
stdClass | $data, | ||
$userid | |||
) |
Get form elements for grading form
stdClass | $grade | |
MoodleQuickForm | $mform | |
stdClass | $data | |
int | $userid |
get_form_elements_for_user | ( | $grade, | |
MoodleQuickForm | $mform, | ||
stdClass | $data, | ||
$userid | |||
) |
Get form elements for grading form
stdClass | $grade | |
MoodleQuickForm | $mform | |
stdClass | $data | |
int | $userid |
|
staticprotected |
Get the image details from a file and return them.
stored_file | $file | |
$pagecount |
|
staticprotected |
Get the image details from a file and return them.
stored_file | $file | |
$pagecount |
get_name | ( | ) |
Get the name of the file feedback plugin
get_name | ( | ) |
Get the name of the file feedback plugin
|
protected |
Generate a page image (if it doesn't exist already) and return the details
int | $pageno | |
object | $submission |
|
protected |
Generate a page image (if it doesn't exist already) and return the details
int | $pageno | |
object | $submission |
get_quickgrading_html | ( | $userid, | |
$grade | |||
) |
Return the annotation and response links
int | $userid | |
mixed | $grade |
get_quickgrading_html | ( | $userid, | |
$grade | |||
) |
Return the annotation and response links
int | $userid | |
mixed | $grade |
|
protected |
Find the current row from the assignment 'return_params'
|
protected |
Find the current row from the assignment 'return_params'
|
protected |
Return the subfolder that contains the details for this submission (was intended to handle resubmissions, but that is already implemented for all assignment types in Moodle 2.5)
|
protected |
Return the subfolder that contains the details for this submission (was intended to handle resubmissions, but that is already implemented for all assignment types in Moodle 2.5)
|
protected |
Get the user submission and team submission objects for the given user.
$userid | |
$attemptnumber |
|
protected |
Get the user submission and team submission objects for the given user.
$userid | |
$attemptnumber |
|
protected |
Return a unique path for writing temporary files to
$submissionid |
|
protected |
Return a unique path for writing temporary files to
$submissionid |
|
protected |
Work out the userid from the return parameters.
|
protected |
Work out the userid from the return parameters.
is_empty | ( | stdClass | $grade | ) |
Return true if there are no feedback files
stdClass | $grade |
is_empty | ( | stdClass | $grade | ) |
Return true if there are no feedback files
stdClass | $grade |
is_enabled | ( | ) |
Check the ghostscript path is valid to see if the plugin should be enabled.
is_enabled | ( | ) |
Check the ghostscript path is valid to see if the plugin should be enabled.
|
protected |
Return the controls toolbar
$submission | |
$user | |
$pageno | |
$enableedit | |
$showprevious |
|
protected |
Return the controls toolbar
$submission | |
$user | |
$pageno | |
$enableedit | |
$showprevious |
|
protected |
Return the next/previous buttons + drop-down page list
$submission | |
$pageno |
|
protected |
Return the next/previous buttons + drop-down page list
$submission | |
$pageno |
|
protected |
Return the second row of the controls: colour + tool selectors.
|
protected |
Return the second row of the controls: colour + tool selectors.
|
protected |
Return the links to view / download the response file
$submission | ||
$teamsubmission | ||
bool | $deletelink |
|
protected |
Return the links to view / download the response file
$submission | ||
$teamsubmission | ||
bool | $deletelink |
|
protected |
Extract the URL to return to when annotation is complete.
|
protected |
Extract the URL to return to when annotation is complete.
show_previous_comments | ( | $submissionid | ) |
Output a list of comments written on a previous submission.
$submissionid |
show_previous_comments | ( | $submissionid | ) |
Output a list of comments written on a previous submission.
$submissionid |
supports_quickgrading | ( | ) |
This plugin does support quick grading.
supports_quickgrading | ( | ) |
This plugin does support quick grading.
update_comment_page | ( | $submissionid, | |
$pageno | |||
) |
Process the AJAX requests - retrieve/update comments, annotations, etc.
int | $submissionid | |
int | $pageno |
update_comment_page | ( | $submissionid, | |
$pageno | |||
) |
Process the AJAX requests - retrieve/update comments, annotations, etc.
int | $submissionid | |
int | $pageno |
upgrade | ( | context | $oldcontext, |
stdClass | $oldassignment, | ||
stdClass | $oldsubmission, | ||
stdClass | $grade, | ||
& | $log | ||
) |
Upgrade the feedback from the old assignment to the new one
context | $oldcontext | - the database for the old assignment context |
stdClass | $oldassignment | The data record for the old assignment |
stdClass | $oldsubmission | The data record for the old submission |
stdClass | $grade | The data record for the new grade |
string | $log | Record upgrade messages in the log |
upgrade | ( | context | $oldcontext, |
stdClass | $oldassignment, | ||
stdClass | $oldsubmission, | ||
stdClass | $grade, | ||
& | $log | ||
) |
Upgrade the feedback from the old assignment to the new one
context | $oldcontext | - the database for the old assignment context |
stdClass | $oldassignment | The data record for the old assignment |
stdClass | $oldsubmission | The data record for the old submission |
stdClass | $grade | The data record for the new grade |
string | $log | Record upgrade messages in the log |
upgrade_settings | ( | context | $oldcontext, |
stdClass | $oldassignment, | ||
& | $log | ||
) |
Upgrade the settings from the old assignment to the new plugin based one
context | $oldcontext | - the context for the old assignment |
stdClass | $oldassignment | - the data for the old assignment |
string | $log | - can be appended to by the upgrade |
upgrade_settings | ( | context | $oldcontext, |
stdClass | $oldassignment, | ||
& | $log | ||
) |
Upgrade the settings from the old assignment to the new plugin based one
context | $oldcontext | - the context for the old assignment |
stdClass | $oldassignment | - the data for the old assignment |
string | $log | - can be appended to by the upgrade |
view | ( | stdClass | $grade | ) |
Display the list of files in the feedback status table
stdClass | $grade |
view | ( | stdClass | $grade | ) |
Display the list of files in the feedback status table
stdClass | $grade |
view_summary | ( | stdClass | $grade, |
& | $showviewlink | ||
) |
Display the list of files in the feedback status table
stdClass | $grade | |
bool | $showviewlink | - Set to true to show a link to see the full list of files |
view_summary | ( | stdClass | $grade, |
& | $showviewlink | ||
) |
Display the list of files in the feedback status table
stdClass | $grade | |
bool | $showviewlink | - Set to true to show a link to see the full list of files |