Jump to navigation

Class: BlankStorage

Numbas.storage.BlankStorage

new BlankStorage()

A blank storage object which does nothing.

Any real storage object needs to implement all of this object's methods.

Source:

Methods

adviceDisplayed(question)

Rcord that the student displayed question advice

Parameters:
Name Type Description
question Numbas.Question
Source:

answerRevealed(question)

Record that the student revealed the answers to a question

Parameters:
Name Type Description
question Numbas.Question
Source:

changeQuestion(question)

Call this when the student moves to a different question

Parameters:
Name Type Description
question Numbas.Question
Source:

end()

Call this when the exam ends (Numbas.Exam#end)

Source:

getEntry() → {String}

Get entry state: ab-initio, or resume

Returns:
Type Description
String
Source:

getMode() → {String}

Get viewing mode:

  • browse - see exam info, not questions
  • normal - sit exam
  • review - look at completed exam
Returns:
Type Description
String
Source:

getStudentID() → {String}

Get the student's ID

Returns:
Type Description
String
Source:

init(exam)

Initialise the SCORM data model and this storage object.

Parameters:
Name Type Description
exam Numbas.Exam
Source:

load(exam) → {Numbas.storage.exam_suspend_data}

Get suspended exam info

Parameters:
Name Type Description
exam Numbas.Exam
Returns:
Type Description
Numbas.storage.exam_suspend_data
Source:

loadExtensionPart(part) → {Numbas.storage.part_suspend_data}

Parameters:
Name Type Description
part Numbas.parts.Part
Returns:
Type Description
Numbas.storage.part_suspend_data
Source:

loadJMEPart(part) → {Numbas.storage.part_suspend_data}

Parameters:
Name Type Description
part Numbas.parts.Part
Returns:
Type Description
Numbas.storage.part_suspend_data
Source:

loadMatrixEntryPart(part) → {Numbas.storage.part_suspend_data}

Parameters:
Name Type Description
part Numbas.parts.Part
Returns:
Type Description
Numbas.storage.part_suspend_data
Source:

loadMultipleResponsePart(part) → {Numbas.storage.part_suspend_data}

Parameters:
Name Type Description
part Numbas.parts.Part
Returns:
Type Description
Numbas.storage.part_suspend_data
Source:

loadNumberEntryPart(part) → {Numbas.storage.part_suspend_data}

Parameters:
Name Type Description
part Numbas.parts.Part
Returns:
Type Description
Numbas.storage.part_suspend_data
Source:

loadPart(part) → {Numbas.storage.part_suspend_data}

Get suspended info for a part

Parameters:
Name Type Description
part Numbas.parts.Part
Returns:
Type Description
Numbas.storage.part_suspend_data
Source:

loadPatternMatchPart(part) → {Numbas.storage.part_suspend_data}

Parameters:
Name Type Description
part Numbas.parts.Part
Returns:
Type Description
Numbas.storage.part_suspend_data
Source:

loadQuestion(question) → {Numbas.storage.question_suspend_data}

Get suspended info for a question

Parameters:
Name Type Description
question Numbas.Question
Returns:
Type Description
Numbas.storage.question_suspend_data
Source:

partAnswered(part)

Call this when a part is answered

Parameters:
Name Type Description
part Numbas.parts.Part
Source:

pause()

Call this when the exam is paused (Numbas.Exam#pause)

Source:

questionSubmitted(question)

Record that a question has been submitted

Parameters:
Name Type Description
question Numbas.Question
Source:

resume()

Call this when the exam is resumed (Numbas.Exam#resume)

Source:

save()

Save SCORM data - call the SCORM commit method to make sure the data model is saved to the server/backing store

Source:

saveExam(exam)

Save exam-level details (just score at the mo)

Parameters:
Name Type Description
exam Numbas.Exam
Source:

start()

Call this when the exam is started (when Numbas.Exam#begin runs, not when the page loads)

Source:

stepsHidden(part)

Record that the student hid the steps for a part

Parameters:
Name Type Description
part Numbas.parts.Part
Source:

stepsShown(part)

Record that the student showed the steps for a part

Parameters:
Name Type Description
part Numbas.parts.Part
Source: