Class QuestionType
package | Default |
---|
applyToQuestion( $oQuestion)
attributeLabels()
attributeNames()
charCodes(): array<mixed,string>
array<mixed,string>
doubleCodes(): array<mixed,string>
array<mixed,string>
findOne(string $pk): null|static
string
primary key of model
null|static
getFieldDataType(): string
string
getFieldType(): string
string
getIsChar(): boolean
boolean
getIsInteger(): boolean
boolean
getIsNumeric(): boolean
boolean
getIsString(): boolean
boolean
getIsText(): boolean
boolean
integerCodes(): array<mixed,string>
array<mixed,string>
modelsAttributes(): array
array
numericCodes(): array<mixed,string>
array<mixed,string>
stringCodes(): array<mixed,string>
array<mixed,string>
textCodes(): array<mixed,string>
array<mixed,string>
QT_1_ARRAY_DUAL
QT_5_POINT_CHOICE
QT_A_ARRAY_5_POINT
QT_B_ARRAY_10_POINT
QT_C_ARRAY_YES_UNCERTAIN_NO
QT_D_DATE
QT_E_ARRAY_INC_SAME_DEC
QT_F_ARRAY
QT_G_GENDER
QT_H_ARRAY_COLUMN
QT_I_LANGUAGE
QT_K_MULTIPLE_NUMERICAL
QT_L_LIST
QT_M_MULTIPLE_CHOICE
QT_N_NUMERICAL
QT_O_LIST_WITH_COMMENT
QT_P_MULTIPLE_CHOICE_WITH_COMMENTS
QT_Q_MULTIPLE_SHORT_TEXT
QT_R_RANKING
QT_S_SHORT_FREE_TEXT
QT_T_LONG_FREE_TEXT
QT_U_HUGE_FREE_TEXT
QT_X_TEXT_DISPLAY
QT_Y_YES_NO_RADIO
QT_EXCLAMATION_LIST_DROPDOWN
QT_VERTICAL_FILE_UPLOAD
QT_ASTERISK_EQUATION
QT_COLON_ARRAY_NUMBERS
QT_SEMICOLON_ARRAY_TEXT
QT_1_ARRAY_MULTISCALE
QT_A_ARRAY_5_CHOICE_QUESTIONS
QT_E_ARRAY_OF_INC_SAME_DEC_QUESTIONS
QT_F_ARRAY_FLEXIBLE_ROW
QT_G_GENDER_DROPDOWN
QT_H_ARRAY_FLEXIBLE_COLUMN
QT_K_MULTIPLE_NUMERICAL_QUESTION
QT_R_RANKING_STYLE
QT_X_BOILERPLATE_QUESTION
QT_COLON_ARRAY_MULTI_FLEX_NUMBERS
QT_SEMICOLON_ARRAY_MULTI_FLEX_TEXT
code :string
var |
---|
string
description :string
var |
---|
string
group :string
var | Group name |
---|
string
subquestions :integer
var | whether has subquestions //TODO make it boolean instead |
---|
integer
other :boolean
var | allow other (and add subquetsion title other if Y) |
---|
boolean
assessable :integer
var | whether it can be used inside Assessments / Quizmode |
---|
integer
hasdefaultvalues :integer
var | whether has default values |
---|
integer
answerscales :integer
var | number of answer scales |
---|
integer
class :string
var | the css class for question (container??) |
---|
string
question :\Question
\Question
questionRenderer :\QuestionRenderer
\QuestionRenderer
fieldType :string
The type of field question needs for storing data
string
fieldDataType :string
numeric vs string types
string
isText :boolean
Whether the type is text (string longer than char)
boolean
isChar :boolean
Whether the type is char (one-character-string)
boolean
isString :boolean
Whether the type is string (text or char)
boolean
isNumeric :boolean
Whether the type numeric (integer, double)
boolean
isInteger :boolean
Whether the type integer
{@inheritdoc}
boolean