More ResponseJSON refactoring

Removed unnecessary $session argument from recordResponses
Refactored nextQuestions to return a list rather than an arrayref
Lots more documentation for ResponseJSON
More param validation for ResponseJSON
Refactored recordResponses
Updated tests
This commit is contained in:
Patrick Donelan 2009-02-06 01:55:56 +00:00
parent 90d314d2f1
commit 932a033b58
4 changed files with 174 additions and 128 deletions

View file

@ -461,8 +461,8 @@ sub getQuestionEditVars {
=head2 getValidQuestionTypes
A convenience method. Returns a list of question types. If you add a question
type to the Survey, you must handle it here, and also in updateQuestionAnswers()
and administersurvey.js
type to the Survey, you must handle it in the following places: here, updateQuestionAnswers,
recordResponses (ResponseJSON) and administersurvey.js
=cut