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

Public Member Functions

 __construct ($data)
 
 get_data ()
 
 get_deserialized_data ()
 

Detailed Description

Class for handling scanned submission for MME exams.

Author
Jaeyoon Kim
Version
0.0.1
Since
2016-03-18

Constructor & Destructor Documentation

__construct (   $data)

The constuctor. The constructor takes in 1 string corresponding to the raw bytes of the image. The image should be an .png image. Only the first page will be read if a multi-page pdf is submitted. This constructor will be changed to use database parameters instead at a later time.

Parameters
blob$dataRaw blob of the image.

Member Function Documentation

get_data ( )

Public method. This method returns a string found within the scanned QRcode. If no QRcode is found, the method return a string "Could not read QRcode"

Returns
str string of the QRcode data
get_deserialized_data ( )

Private method. Returns the data parameters used to generate the QRcode as an array.

Returns
array Array containing the 4 matches from the QRcode string. Exam name, Booklet num, page num, max pages

The documentation for this class was generated from the following file: