Question Objects
From LimeSurvey Manual
As of LimeSurvey 2.0, questions type were internally identified by a single character. That is, a display question was represented by 'X' while a list question was represented by 'L' etc. Unfortunately, this made adding and altering question types incredibly difficult since code for each question type was spread across literally dozens of files. To make it easier for independent developers to add and modify question types, each question will have it's own class in the application/modules folder. These classes will contain all question-type-specific code. This will both allow developers to easily create custom question types by extending any of the existing question types.
There are 3 abstract question classes: QuestionModule, ArrayQuestion, and TextQuestion. All the question classes (including Array and Text) extend QuestionModule and end in "Question." Below is a list of class names and descriptions.
Description | Class Prefix | Legacy Character Code | Parent (if blank assume QuestionModule) |
5 point choice | FiveList | 5 | |
List (dropdown) | Select | ! | List |
List (radio) | List | L | |
List with comment | CommentList | O | List |
Array | RadioArray | F | Array |
Array (10 point choice) | TenRadioArray | B | RadioArray |
Array (5 point choice) | FiveRadioArray | A | RadioArray |
Array (Increase/Same/Decrease) | IDRadioArray | E | RadioArray |
Array (Numbers) | NumberArray | : | Array |
Array (Texts) | TextArray | ; | Array |
Array (Yes/No/Uncertain) | YNRadioArray | C | RadioArray |
Array by column | ColumnRadioArray | H | RadioArray |
Array dual scale | DualRadioArray | 1 | RadioArray |
Date/Time | Date | D | |
Equation | Equation | * | |
File upload | File | pipe character | |
Gender | Gender | G | |
Language switch | Language | I | |
Multiple numerical input | Multinumerical | K | |
Numerical input | Numerical | N | |
Ranking | Ranking | R | |
Text display | Display | X | |
Yes/No | YN | Y | |
Huge free text | HugeText | U | Text |
Long free text | LongText | T | Text |
Multiple short text | Multitext | Q | |
Short free text | ShortText | S | Text |
Multiple choice | Check | M | |
Multiple choice with comments | CommentCheck | P | Check |