Improved createSurveyOrder documentation, and made perlcritic happy
This commit is contained in:
parent
6fb325699f
commit
477f014177
1 changed files with 12 additions and 11 deletions
|
|
@ -82,13 +82,12 @@ sub new {
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
=head2 createSurveyOrder ( SurveyJSON, [address,address] )
|
=head2 createSurveyOrder
|
||||||
|
|
||||||
This creates the order for the survey which will change after every fork. The survey
|
Computes the order of Sections, Questions and Aswers for this Survey. The order is represented as
|
||||||
order is to precreate random questions and answers, which also leaves a record or what
|
an array of addresses (see L<"Address Parameter">), and is stored in the surveyOrder property.
|
||||||
the user was presented with. Forks are passed in to show where to branch the new order.
|
Questions and Answers that are set to be randomized are shuffled into a random order.
|
||||||
|
The survey order leaves a record or what the user was presented with.
|
||||||
If questions and/or answers were set to be randomized, it is handled in here.
|
|
||||||
|
|
||||||
=cut
|
=cut
|
||||||
|
|
||||||
|
|
@ -128,6 +127,8 @@ sub createSurveyOrder {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$self->response->{surveyOrder} = \@surveyOrder;
|
$self->response->{surveyOrder} = \@surveyOrder;
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue