Mass Exam Marker Plugin
A Moodle plugin to help mark massive exams.
 All Data Structures Namespaces Files Functions Variables
local_memplugin.php File Reference

Namespaces

 local
 

Variables

 $string ['test'] = 'Testing'
 
 $string ['menuoption'] = 'Mass Exam Marker Plugin'
 
 $string ['pluginname'] = 'Mass Exam Marker Plugin'
 
 $string ['buttonnext'] = 'Next'
 
 $string ['buttonback'] = 'Back'
 
 $string ['savebutton'] = 'Save'
 
 $string ['buttonupload'] = 'Upload'
 
 $string ['what_to_upload'] = 'PDF file to upload:'
 
 $string ['filename'] = 'File name:'
 
 $string ['genheader'] = "General"
 
 $string ['file'] = 'Upload a File'
 
 $string ['memhome'] = 'MemHome'
 
 $string ['Welcome'] = 'Welcome to MEM!'
 
 $string ['createbutton'] = ' Create an Exam '
 
 $string ['markbuttonhome'] = ' Upload an Exam '
 
 $string ['checkstats'] = ' Check Statistics '
 
 $string ['startmarking'] = 'Start Marking'
 
 $string ['yourexams'] = 'Available Exams'
 
 $string ['generatenav'] = 'Generate Exams'
 
 $string ['createheader'] = 'Creating a new Exam'
 
 $string ['makeexam'] = 'Name of Exam to Generate'
 
 $string ['copyheader'] = 'Copy Options'
 
 $string ['examcopies'] = 'How many booklets would you like generated?'
 
 $string ['downloadheader'] = 'Download Options'
 
 $string ['howtogenerate'] = 'How would you like to download your exam?'
 
 $string ['multicopy'] = 'Individual Exam Files'
 
 $string ['largecopy'] = 'One Large Exam File'
 
 $string ['emergencypgs'] = 'How many blank pages would you like to include?'
 
 $string ['generatebutton'] = 'Generate Exams'
 
 $string ['classselection'] = 'Please select a class section.'
 
 $string ['markheader'] = 'Mark Exams'
 
 $string ['sectionheader'] = 'Select course section(s)'
 
 $string ['exambatch'] = 'Select Exam(s)'
 
 $string ['markbutton'] = ' Mark '
 
 $string ['addsection'] = 'Add additional section'
 
 $string ['courses'] = 'Select Course(s)'
 
 $string ['finishheader'] = 'Finish'
 
 $string ['grid'] = 'Grid'
 
 $string ['stats_title'] = 'Statistics'
 
 $string ['stats_download'] = 'Download Statistics'
 
 $string ['stats_spread'] = 'Spread: '
 
 $string ['stats_max'] = 'Maximum: '
 
 $string ['stats_min'] = 'Minimum: '
 
 $string ['stats_mean'] = 'Mean: '
 
 $string ['stats_median'] = 'Median: '
 
 $string ['stats_select_title'] = 'Exam Statistics from Year & Semester'
 
 $string ['stats_choice_submit'] = 'Get Statistics'
 
 $string ['stats_grouping'] = 'Select Semester'
 
 $string ['addquicklist'] = 'Add to comment Quicklist'
 
 $string ['allowpdffeedback'] = 'Enabled'
 
 $string ['annotatesubmission'] = 'Annotate submission'
 
 $string ['annotationhelp'] = 'Annotation help'
 
 $string ['annotationhelp_text']
 
 $string ['badaction'] = 'Invalid action \'{$a}\''
 
 $string ['badannotationid'] = 'Annotation id is for a different submission or page'
 
 $string ['badcommentid'] = 'Comment id is for a different submission or page'
 
 $string ['badcoordinate'] = 'Odd number of coordinates in line - should be 2 coordinates per point'
 
 $string ['badpath'] = 'Path point is invalid'
 
 $string ['badtype'] = 'Invalid type {$a}'
 
 $string ['backtocommentlist'] = 'Back to comment list'
 
 $string ['cancel'] = 'Cancel'
 
 $string ['clearimagecache'] = 'Clear page image cache'
 
 $string ['colourred'] = 'Red'
 
 $string ['colouryellow'] = 'Yellow'
 
 $string ['colourgreen'] = 'Green'
 
 $string ['colourblue'] = 'Blue'
 
 $string ['colourwhite'] = 'White'
 
 $string ['colourclear'] = 'Clear'
 
 $string ['colourblack'] = 'Black'
 
 $string ['comment'] = 'Comment'
 
 $string ['commentcolour'] = '[,] - comment background colour'
 
 $string ['commenticon'] = "c - add comments\nHold Ctrl to draw a line"
 
 $string ['deletecomment'] = 'Delete comment'
 
 $string ['deleteresponse'] = 'Delete response'
 
 $string ['deleteresponseconfirm'] = 'Are you sure you want to delete the response for {$a->username} in assignment \'{$a->assignmentname}\'?'
 
 $string ['downloadoriginal'] = 'Download original submission PDF'
 
 $string ['downloadresponse'] = 'Download response'
 
 $string ['draftsaved'] = 'Draft saved'
 
 $string ['emptyquicklist'] = 'No items in Quicklist'
 
 $string ['emptyquicklist_instructions'] = 'Right-click on a comment to copy it to the Quicklist'
 
 $string ['emptysubmission'] = 'Empty submission'
 
 $string ['enabled'] = 'PDF feedback'
 
 $string ['enabled_help'] = 'This allows the online annotation of PDFs (submitted via the PDF submission type) and the returning of the annotated work to students.'
 
 $string ['eraseicon'] = 'e - erase lines and shapes'
 
 $string ['errorgenerateimage'] = 'Unable to generate image - details: {$a}'
 
 $string ['errormessage'] = 'Error message: '
 
 $string ['errornosubmission'] = 'Atempting to create image for non-existent submission'
 
 $string ['errornosubmission2'] = 'Unable to find submission PDF'
 
 $string ['errortempfolder'] = 'Unable to create temporary folder'
 
 $string ['findcomments'] = 'Find comments'
 
 $string ['findcommentsempty'] = 'No comments'
 
 $string ['freehandicon'] = 'f - freehand lines'
 
 $string ['generateresponse'] = 'Generate response file'
 
 $string ['gspath'] = 'Ghostscript path'
 
 $string ['gspath2'] = 'On most Linux installs, this can be left as \'/usr/bin/gs\'. On Windows it will be something like \'c:\\gs\\bin\\gswin32c.exe\' (make sure there are no spaces in the path - if necessary copy the files \'gswin32c.exe\' and \'gsdll32.dll\' to a new folder without a space in the path)'
 
 $string ['highlighticon'] = 'h - highlight text'
 
 $string ['imagefor'] = 'Image files for {$a}'
 
 $string ['jsrequired'] = 'Javascript must be enabled in your browser in order for PDF annotation to function'
 
 $string ['keyboardnext'] = 'n - next page'
 
 $string ['keyboardprev'] = 'p - previous page'
 
 $string ['linecolour'] = '{,} - line colour'
 
 $string ['lineicon'] = 'l - lines'
 
 $string ['missingannotationdata'] = 'Missing annotation data'
 
 $string ['missingcommentdata'] = 'Missing comment data'
 
 $string ['missingquicklistdata'] = 'Missing quicklist data'
 
 $string ['next'] = 'Next'
 
 $string ['nocomments'] = 'No comments'
 
 $string ['nogroup'] = 'No group'
 
 $string ['okagain'] = 'Click OK to try again'
 
 $string ['openlinknewwindow'] = 'Open links in new window'
 
 $string ['opennewwindow'] = 'Open this page in a new window'
 
 $string ['ovalicon'] = 'o - ovals'
 
 $string ['pagenumber'] = 'Page number'
 
 $string ['pagenumbertoobig'] = 'Requested page number is bigger than the page count ({$a->pageno} > {$a->pagecount})'
 
 $string ['pagenumbertoosmall'] = 'Requested page number is too small (<1)'
 
 $string ['pdf'] = 'PDF feedback'
 
 $string ['previousnone'] = 'None'
 
 $string ['quicklist'] = 'Comment Quicklist'
 
 $string ['previous'] = 'Prev'
 
 $string ['rectangleicon'] = 'r - rectangles'
 
 $string ['resend'] = 'Resend'
 
 $string ['responsefor'] = 'Response file for {$a}'
 
 $string ['responseok'] = 'Response file generated'
 
 $string ['responseproblem'] = 'There was a problem whilst generating the response file'
 
 $string ['savedraft'] = 'Save draft annotations'
 
 $string ['servercommfailed'] = 'Server communication failed - do you want to resend the message?'
 
 $string ['showpreviousassignment'] = 'Show previous assignment'
 
 $string ['stamp'] = 'Choose stamp'
 
 $string ['stampicon'] = 's - stamp'
 
 $string ['testgs'] = 'Test ghostscript path'
 
 $string ['test_ok'] = 'The ghostscript path appears to be OK - please check you can see the message in the image below'
 
 $string ['test_empty'] = 'The ghostscript path is empty - please enter the correct path'
 
 $string ['test_doesnotexist'] = 'The ghostscript path points to a non-existent file'
 
 $string ['test_isdir'] = 'The ghostscript path points to a folder, please include the ghostscript program in the path you specify'
 
 $string ['test_notexecutable'] = 'The ghostscript points to a file that is not executable'
 
 $string ['test_notestfile'] = 'The test PDF is missing'
 
 $string ['viewresponse'] = 'View response online'
 

Variable Documentation

$string['test'] = 'Testing'
$string['menuoption'] = 'Mass Exam Marker Plugin'
$string['pluginname'] = 'Mass Exam Marker Plugin'
$string['buttonnext'] = 'Next'
$string['buttonback'] = 'Back'
$string['savebutton'] = 'Save'
$string['buttonupload'] = 'Upload'
$string['what_to_upload'] = 'PDF file to upload:'
$string['filename'] = 'File name:'
$string['genheader'] = "General"
$string['file'] = 'Upload a File'
$string['memhome'] = 'MemHome'
$string['Welcome'] = 'Welcome to MEM!'
$string['createbutton'] = ' Create an Exam '
$string['markbuttonhome'] = ' Upload an Exam '
$string['checkstats'] = ' Check Statistics '
$string['startmarking'] = 'Start Marking'
$string['yourexams'] = 'Available Exams'
$string['generatenav'] = 'Generate Exams'
$string['createheader'] = 'Creating a new Exam'
$string['makeexam'] = 'Name of Exam to Generate'
$string['copyheader'] = 'Copy Options'
$string['examcopies'] = 'How many booklets would you like generated?'
$string['downloadheader'] = 'Download Options'
$string['howtogenerate'] = 'How would you like to download your exam?'
$string['multicopy'] = 'Individual Exam Files'
$string['largecopy'] = 'One Large Exam File'
$string['emergencypgs'] = 'How many blank pages would you like to include?'
$string['generatebutton'] = 'Generate Exams'
$string['classselection'] = 'Please select a class section.'
$string['markheader'] = 'Mark Exams'
$string['sectionheader'] = 'Select course section(s)'
$string['exambatch'] = 'Select Exam(s)'
$string['markbutton'] = ' Mark '
$string['addsection'] = 'Add additional section'
$string['courses'] = 'Select Course(s)'
$string['finishheader'] = 'Finish'
$string['grid'] = 'Grid'
$string['stats_title'] = 'Statistics'
$string['stats_download'] = 'Download Statistics'
$string['stats_spread'] = 'Spread: '
$string['stats_max'] = 'Maximum: '
$string['stats_min'] = 'Minimum: '
$string['stats_mean'] = 'Mean: '
$string['stats_median'] = 'Median: '
$string['stats_select_title'] = 'Exam Statistics from Year & Semester'
$string['stats_choice_submit'] = 'Get Statistics'
$string['stats_grouping'] = 'Select Semester'
$string['addquicklist'] = 'Add to comment Quicklist'
$string['allowpdffeedback'] = 'Enabled'
$string['annotatesubmission'] = 'Annotate submission'
$string['annotationhelp'] = 'Annotation help'
$string['annotationhelp_text']
Initial value:
= '<table>
<thead><tr><th>Control</th><th>Keyboard shortcut</th><th>Description</th></tr></thead>
<tr><td>{$a->save}</td><td>&nbsp;</td><td>Close annotation without generating a response PDF (note all annotations are saved immediately as they are saved</td></tr>
<tr><td>{$a->generate}</td><td>&nbsp;</td><td>Generate an annotated PDF for the student to download</td></tr>
<tr><td>Find comments</td><td>&nbsp;</td><td>Jump straight to a previously entered comment (on this submission) and highlight it.</td></tr>
<tr><td>Show previous</td><td>&nbsp;</td><td>Show comments for this student from another assignment on this course (in a side frame)</td></tr>
<tr><td>&lt;-- Prev</td><td>p</td><td>View the previous page</td></tr>
<tr><td>Next --&gt;</td><td>n</td><td>View the next page</td></tr>
<tr><td>Background colour</td><td>[ and ]</td><td>Change the fill colour for the comment box (also available by right-clicking on a comment)</td></tr>
<tr><td>Line colour</td><td>{ and }</td><td>Change the colour for annotations</td></tr>
<tr><td>Choose stamp</td><td>&nbsp;</td><td>Choose the stamp to use for the stamp tool (new stamps can be added to the \'pix/stamps\' folder on the server)</td></tr>
<tr><td>{$a->comment}</td><td>c</td><td>Click on the page to add a comment box, type in the comment, then click on the page again to save. Click on comment to edit, drag to move. Right-click to change colour, save to quicklist or delete (or delete text to delete).</td></tr>
<tr><td>{$a->line}</td><td>l</td><td>Click + drag (or click, move, click) to draw a line on the page</td></tr>
<tr><td>{$a->rectangle}</td><td>r</td><td>Click + drag (or click, move, click) to draw a rectangle on the page</td></tr>
<tr><td>{$a->oval}</td><td>o</td><td>Click + drag (or click, move, click) to draw an oval on the page</td></tr>
<tr><td>{$a->freehand}</td><td>f</td><td>Click + drag to draw freehand lines on the page</td></tr>
<tr><td>{$a->highlight}</td><td>h</td><td>Click + drag (or click, move, click) to draw a semi-transparent highlight across the existing page content</td></tr>
<tr><td>{$a->stamp}</td><td>s</td><td>Click to insert the selected stamp at the default size. Click + drag to insert at a different size</td></tr>
<tr><td>{$a->erase}</td><td>e</td><td>Click in or on an annotation (not a comment) to erase it</td></tr>
<tr><td>Quicklist</td><td>&nbsp;</td><td>Right-click on the page to insert a comment previously saved to the \'quicklist\'. Use the \'x\' to delete unwanted quicklist items.</td></tr>
</table>'
$string['badaction'] = 'Invalid action \'{$a}\''
$string['badannotationid'] = 'Annotation id is for a different submission or page'
$string['badcommentid'] = 'Comment id is for a different submission or page'
$string['badcoordinate'] = 'Odd number of coordinates in line - should be 2 coordinates per point'
$string['badpath'] = 'Path point is invalid'
$string['badtype'] = 'Invalid type {$a}'
$string['backtocommentlist'] = 'Back to comment list'
$string['cancel'] = 'Cancel'
$string['clearimagecache'] = 'Clear page image cache'
$string['colourred'] = 'Red'
$string['colouryellow'] = 'Yellow'
$string['colourgreen'] = 'Green'
$string['colourblue'] = 'Blue'
$string['colourwhite'] = 'White'
$string['colourclear'] = 'Clear'
$string['colourblack'] = 'Black'
$string['comment'] = 'Comment'
$string['commentcolour'] = '[,] - comment background colour'
$string['commenticon'] = "c - add comments\nHold Ctrl to draw a line"
$string['deletecomment'] = 'Delete comment'
$string['deleteresponse'] = 'Delete response'
$string['deleteresponseconfirm'] = 'Are you sure you want to delete the response for {$a->username} in assignment \'{$a->assignmentname}\'?'
$string['downloadoriginal'] = 'Download original submission PDF'
$string['downloadresponse'] = 'Download response'
$string['draftsaved'] = 'Draft saved'
$string['emptyquicklist'] = 'No items in Quicklist'
$string['emptyquicklist_instructions'] = 'Right-click on a comment to copy it to the Quicklist'
$string['emptysubmission'] = 'Empty submission'
$string['enabled'] = 'PDF feedback'
$string['enabled_help'] = 'This allows the online annotation of PDFs (submitted via the PDF submission type) and the returning of the annotated work to students.'
$string['eraseicon'] = 'e - erase lines and shapes'
$string['errorgenerateimage'] = 'Unable to generate image - details: {$a}'
$string['errormessage'] = 'Error message: '
$string['errornosubmission'] = 'Atempting to create image for non-existent submission'
$string['errornosubmission2'] = 'Unable to find submission PDF'
$string['errortempfolder'] = 'Unable to create temporary folder'
$string['findcomments'] = 'Find comments'
$string['findcommentsempty'] = 'No comments'
$string['freehandicon'] = 'f - freehand lines'
$string['generateresponse'] = 'Generate response file'
$string['gspath'] = 'Ghostscript path'
$string['gspath2'] = 'On most Linux installs, this can be left as \'/usr/bin/gs\'. On Windows it will be something like \'c:\\gs\\bin\\gswin32c.exe\' (make sure there are no spaces in the path - if necessary copy the files \'gswin32c.exe\' and \'gsdll32.dll\' to a new folder without a space in the path)'
$string['highlighticon'] = 'h - highlight text'
$string['imagefor'] = 'Image files for {$a}'
$string['jsrequired'] = 'Javascript must be enabled in your browser in order for PDF annotation to function'
$string['keyboardnext'] = 'n - next page'
$string['keyboardprev'] = 'p - previous page'
$string['linecolour'] = '{,} - line colour'
$string['lineicon'] = 'l - lines'
$string['missingannotationdata'] = 'Missing annotation data'
$string['missingcommentdata'] = 'Missing comment data'
$string['missingquicklistdata'] = 'Missing quicklist data'
$string['next'] = 'Next'
$string['nocomments'] = 'No comments'
$string['nogroup'] = 'No group'
$string['okagain'] = 'Click OK to try again'
$string['openlinknewwindow'] = 'Open links in new window'
$string['opennewwindow'] = 'Open this page in a new window'
$string['ovalicon'] = 'o - ovals'
$string['pagenumber'] = 'Page number'
$string['pagenumbertoobig'] = 'Requested page number is bigger than the page count ({$a->pageno} > {$a->pagecount})'
$string['pagenumbertoosmall'] = 'Requested page number is too small (<1)'
$string['pdf'] = 'PDF feedback'
$string['previousnone'] = 'None'
$string['quicklist'] = 'Comment Quicklist'
$string['previous'] = 'Prev'
$string['rectangleicon'] = 'r - rectangles'
$string['resend'] = 'Resend'
$string['responsefor'] = 'Response file for {$a}'
$string['responseok'] = 'Response file generated'
$string['responseproblem'] = 'There was a problem whilst generating the response file'
$string['savedraft'] = 'Save draft annotations'
$string['servercommfailed'] = 'Server communication failed - do you want to resend the message?'
$string['showpreviousassignment'] = 'Show previous assignment'
$string['stamp'] = 'Choose stamp'
$string['stampicon'] = 's - stamp'
$string['testgs'] = 'Test ghostscript path'
$string['test_ok'] = 'The ghostscript path appears to be OK - please check you can see the message in the image below'
$string['test_empty'] = 'The ghostscript path is empty - please enter the correct path'
$string['test_doesnotexist'] = 'The ghostscript path points to a non-existent file'
$string['test_isdir'] = 'The ghostscript path points to a folder, please include the ghostscript program in the path you specify'
$string['test_notexecutable'] = 'The ghostscript points to a file that is not executable'
$string['test_notestfile'] = 'The test PDF is missing'
$string['viewresponse'] = 'View response online'