Colin Kuskie
941240370b
Add a mutator for questionsAnswered, with tests.
...
Correct POD for recordResponses.
Begin recordResponses answer processing tests.
2008-12-15 00:09:03 +00:00
Colin Kuskie
ad00b0f082
Flesh out the recordResponses POD. Almost ready for more in depth testing.
2008-12-14 04:56:43 +00:00
Colin Kuskie
aa04599aec
recordResponse tests (just a few)
...
Fix a bug where if a section is terminal, and has no questions, it did not return the terminal flag as true.
A little recordResponse POD.
2008-12-13 03:56:26 +00:00
Colin Kuskie
3c7162fb8f
Add POD stubs, fully document goto.
...
Prevent recordResponses from autovivifying mcHash keys. From page to page of
questions it does not matter, but if two questions in the same page have an
unrecognized, type, the second will be processed differently from the first.
2008-12-12 23:33:33 +00:00
Colin Kuskie
574d6cf036
nextQuestions tests.
...
Add POD, and make sure that answers returned by nextQuestions are safe refs.
2008-12-12 19:27:12 +00:00
Colin Kuskie
5fe0a7cbe2
Add section separator comments between the subroutines.
...
Add a few checks to getNextSection* so that it won't autovivify array elements
past the end of the survey order array.
2008-12-12 17:03:10 +00:00
Colin Kuskie
98294e4e78
Add tests for nextSectionid, nextSection, currentSection.
...
Add more POD to ResponseJSON
2008-12-12 00:36:08 +00:00
Colin Kuskie
c60393e44a
Tests for createSurveyOrder and shuffle.
...
POD for several methods.
2008-12-12 00:03:16 +00:00
Colin Kuskie
1c1f01d473
Change ResponseJSON to use a proper mutator for startTime.
...
Add tests for startTime.
Survey uses the accessor, and no longer needs to manually set startTime.
2008-12-11 19:45:19 +00:00
Colin Kuskie
08bf6b5147
Flesh out the ResponseJSON test more. Add POD.
2008-12-10 02:25:42 +00:00
Colin Kuskie
931b502666
Update SurveyJSON POD for the new method.
...
Add legal and header POD for ResponseJSON.
2008-12-06 00:23:17 +00:00
Kaleb Murphy
3671e80bea
terminal sections now work correctly
2008-12-05 23:53:11 +00:00
Kaleb Murphy
4d1f311c42
Fixed hasTimeLimit to work with the new storage location of the time limit.
2008-12-05 21:43:15 +00:00
Kaleb Murphy
5127a307b7
Minor fix. JSON no longer assumes proper utf8, but uses whatever off-brand locale a luser wants to use.
2008-12-02 16:03:23 +00:00
Patrick Donelan
31dec565b7
Refactored JS to use module pattern for proper encapsulation
...
Extensive jslinting to improve cross-browser support
Added some debugging statements
Fixed redirection to exitUrl when survey complete
Added www_deleteResponses
Added security restrictions on www_ methods
2008-11-25 06:33:55 +00:00
Kaleb Murphy
bf7c3505d7
Survey now has fully functioning time limits, can show limits to users, and can show progress
2008-11-24 15:20:13 +00:00
Kaleb Murphy
ad022c6699
Added Survey time limit code. This is only at the survey level and sends the user to the survey end settings. Probably need to allow for a special timeout message.
2008-11-24 02:59:02 +00:00
Kaleb Murphy
1d5859631c
Used WG perltidyrc to clean up files
2008-11-14 14:49:48 +00:00
Kaleb Murphy
02d76504a6
Removed some debug statements and perltidied the code
2008-11-13 18:59:01 +00:00
Graham Knop
48b4ba1fc8
adding survey back in
2008-11-12 03:24:49 +00:00
Graham Knop
151e705286
Backing out Survey for now
2008-11-12 02:40:27 +00:00
Kaleb Murphy
70a0a422b7
Removed all instances of srand. This is called implicitily by rand and be dangerous if called mulitple times by the same process.
2008-11-10 21:53:30 +00:00
Kaleb Murphy
1dd08e25c9
The new survey is here. Make sure to wg-reset your test instances to get the new DB schema.
2008-11-06 20:48:18 +00:00
Kaleb Murphy
69475e53ba
preparing for merge
2008-11-06 20:13:44 +00:00
Kaleb Murphy
76b1f55225
prepping for merge
2008-11-06 19:44:28 +00:00
Kaleb Murphy
4c82eb9b61
Add new report table (and sql file), and the survey now does reporting.
2008-10-24 21:38:03 +00:00
Kaleb Murphy
5b8a1df90e
Fixed end of survey bug. Now previous answer fill in workds [[gotparam]], branching, and all question types but uploaded files all work. Need to finish reports, upgrade script from V1.0, copy and paste, add point values to answers and questions in the edit templates, and figure out what all methods a proper core wobject should allow.
2008-10-20 03:49:17 +00:00
Kaleb Murphy
ff2ecaa8fc
Branching now works, but now it isn't recognizing the end of the survey properly. Will be easy fix tomorrow.
2008-10-20 03:35:40 +00:00
Patrick Donelan
afde10109f
Minor fixes (typo and unnecessary hash dereference)
2008-10-15 01:03:13 +00:00
Kaleb Murphy
ccd1deaef8
minor changes
2008-10-14 21:20:05 +00:00