Skip to content

Commit

Permalink
Dev: More phpdoc for retrieveAnswers
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 3, 2016
1 parent 4f56537 commit 3c4c4dc
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions application/helpers/qanda_helper.php
Expand Up @@ -73,8 +73,20 @@ function setNoAnswerMode($thissurvey)
* and a list of the question/answer fieldnames associated. It is called from
* question.php, group.php, survey.php or preview.php
*
* @param mixed $ia
* @return mixed
* @param array $ia Details of $ia can be found at top of this file
* @return array Array like [array $qanda, array $inputnames] where
* $qanda has elements [
* $qtitle : string? what's the content?
* $answer ?

This comment has been minimized.

Copy link
@Shnoulle

Shnoulle Sep 4, 2016

Collaborator

I think $answer is {ANSWERS} : https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/SurveyRuntimeHelper.php#L1561

In this function, i search all parts (but don't do a god phpdoc 😇 )

Are you sure for $qanda[0] ? I think it's another array : https://github.com/LimeSurvey/LimeSurvey/blob/master/application/helpers/SurveyRuntimeHelper.php#L1562

But maybe qanda is not always the same .... 😩

This comment has been minimized.

Copy link
@olleharstedt

olleharstedt Sep 4, 2016

Author Contributor

You're right about qanda[0], it's an array. I will push the correction.

* 'help' : string
* $display : ?
* $qid : integer
* $ia[2]
* $ia[5] = group id : int
* $ia[1] = fieldname : string
* ]
* and $inputnames is ? used for hiddenfieldnames and upload file?
*
*/
function retrieveAnswers($ia)
{
Expand Down

0 comments on commit 3c4c4dc

Please sign in to comment.