Kaleb Murphy
3a172a9e3d
POD docs added
2009-01-26 21:17:46 +00:00
Yung Han Khoe
a612b56e92
adding grade book view to Survey
2009-01-26 14:57:01 +00:00
Kaleb Murphy
5741d71445
Corrected survey timeout issues.
2008-12-17 14:46:54 +00:00
Patrick Donelan
fa04344b7d
SurveyJSON->update() should iterate over supplied object keys, not
...
existing object keys. Also applied PBP formatting, fat commas, etc..
2008-12-15 05:52:07 +00:00
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
Colin Kuskie
8ea45fe456
Switch to using dclone from Clone::clone due to bugs under
...
perl 5.10
2008-12-05 04:21:43 +00:00
Colin Kuskie
a50c27de67
add POD, fix a few typos.
...
Add tests for updateQuestionAnswers
2008-12-04 23:35:40 +00:00
Colin Kuskie
75f6497924
Tests for getEditVars, getEditSectionVars and addAnswersToQuestion.
...
Add POD.
Fix a bug with setting verbatims in addAnswersToQuestion
2008-12-04 22:01:17 +00:00
Colin Kuskie
24fe2e6dc0
Add tests for getQuestionEditVars.
...
Refactor out the list of valid question types to make testing easier.
2008-12-04 20:47:42 +00:00
Colin Kuskie
0453f47bc1
Tests for getDragDrop and getAnswerEditVars.
...
More POD.
2008-12-04 20:18:49 +00:00
Colin Kuskie
d370772762
Make copy use safe references.
...
Add tests for remove, and copy.
2008-12-03 04:41:38 +00:00
Graham Knop
706b24bcb6
fix some POD errors
2008-12-03 00:33:07 +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
Colin Kuskie
23f8e48f6d
Update POD for several methods.
...
Make getObject clone data for safety and update tests.
Make newObject always alter $address for consistency and update tests.
2008-12-01 17:39:34 +00:00
Colin Kuskie
377126da8c
Add more POD to SurveyJSON.
...
Add some basic tests for getObject, update and remove.
2008-11-30 04:30:40 +00:00
Colin Kuskie
020c882fb6
Test abusing references in getObject.
...
More insertObject testing.
More POD.
2008-11-29 17:29:00 +00:00
Colin Kuskie
fe33c87f13
Add tests for insertObject, and a helper method for summarizing the SurveyJSON data structure.
...
Add POD for insertObject. Note that splicing beyond the end of the array will generate
a warning.
2008-11-29 05:32:14 +00:00
Colin Kuskie
59cd001bd8
Add POD and Plain Black legal notice.
2008-11-28 05:01:30 +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
d8bc8f1520
preparing for merge
2008-11-06 20:18:23 +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
Patrick Donelan
c049c91976
Hack to allow 20 questions per page until we support an arbitrary limit
2008-10-24 03:49:08 +00:00
Kaleb Murphy
5afae6de85
You can now copy sections and questions. And if I correctly understand how to bundle asset packages, all the new template changes are included.
2008-10-20 16:17:25 +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
2a9bbc7490
Added sql for survey
2008-10-14 21:42:37 +00:00
Kaleb Murphy
8c5e74e856
added all the templates
2008-10-14 21:28:47 +00:00