Mass Exam Marker Plugin
A Moodle plugin to help mark massive exams.
|
Public Member Functions | |
__construct ($data) | |
get_data () | |
get_deserialized_data () | |
Class for handling scanned submission for MME exams.
__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.
blob | $data | Raw blob of the image. |
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"
get_deserialized_data | ( | ) |
Private method. Returns the data parameters used to generate the QRcode as an array.