Skip to content

Commit

Permalink
Dev: More phpdoc in qanda
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Sep 4, 2016
1 parent 3c4c4dc commit 29741d6
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions application/helpers/qanda_helper.php
Expand Up @@ -76,12 +76,26 @@ function setNoAnswerMode($thissurvey)
* @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?
* $qtitle (question_text) : array [
all : string; complete HTML?; all has been added for backwards compatibility with templates that use question_start.pstpl (now redundant)
'text' => $qtitle, question?? $ia[3]?
'code' => $ia[2] or title??
'number' => $number
'help' => ''
'mandatory' => ''
man_message : string; message when mandatory is not answered
'valid_message' => ''
file_valid_message : string; only relevant for file upload
'class' => ''
'man_class' => ''
'input_error_class' => '' // provides a class.
'essentials' => ''
* ]
* $answer ?
* 'help' : string
* $display : ?
* $qid : integer
* $ia[2]
* $ia[2] = title;
* $ia[5] = group id : int
* $ia[1] = fieldname : string
* ]
Expand Down

0 comments on commit 29741d6

Please sign in to comment.