QuestionType

Extends \StaticModel

Class QuestionType

package

Default

Methods

applyToQuestion

applyToQuestion( $oQuestion) 

Arguments

$oQuestion

{@inheritdoc}

attributeLabels() 

{@inheritdoc}

attributeNames() 
inherited

Get all type codes of that represent data in char (one-character-string)

charCodes() : array<mixed,string>
static

Response

array<mixed,string>

Get all type codes of that represent data as double

doubleCodes() : array<mixed,string>
static

Response

array<mixed,string>

findOne

findOne(string $pk) : null|static
inherited static

Arguments

$pk

string

primary key of model

Response

null|static

getFieldDataType

getFieldDataType() : string

Response

string

getFieldType

getFieldType() : string

Response

string

getIsChar

getIsChar() : boolean

Response

boolean

getIsInteger

getIsInteger() : boolean

Response

boolean

getIsNumeric

getIsNumeric() : boolean

Response

boolean

getIsString

getIsString() : boolean

Response

boolean

getIsText

getIsText() : boolean

Response

boolean

Get all type codes of that represent data as integer

integerCodes() : array<mixed,string>
static

Response

array<mixed,string>

Models attributes as array indexed by primary key

modelsAttributes() : array
inherited static

Response

array

Get all type codes of that represent data as double

numericCodes() : array<mixed,string>
static

Response

array<mixed,string>

Get all type codes of that represent data in string (text and char)

stringCodes() : array<mixed,string>
static

Response

array<mixed,string>

Get all type codes of that represent data in text (string longer than char)

textCodes() : array<mixed,string>
static

Response

array<mixed,string>

Constants

QT_1_ARRAY_MULTISCALE

QT_1_ARRAY_MULTISCALE

QT_5_POINT_CHOICE

QT_5_POINT_CHOICE

QT_A_ARRAY_5_CHOICE_QUESTIONS

QT_A_ARRAY_5_CHOICE_QUESTIONS

QT_B_ARRAY_10_POINT

QT_B_ARRAY_10_POINT

QT_C_ARRAY_YES_UNCERTAIN_NO

QT_C_ARRAY_YES_UNCERTAIN_NO

QT_D_DATE

QT_D_DATE

QT_E_ARRAY_OF_INC_SAME_DEC_QUESTIONS

QT_E_ARRAY_OF_INC_SAME_DEC_QUESTIONS

QT_F_ARRAY_FLEXIBLE_ROW

QT_F_ARRAY_FLEXIBLE_ROW

QT_G_GENDER_DROPDOWN

QT_G_GENDER_DROPDOWN

QT_H_ARRAY_FLEXIBLE_COLUMN

QT_H_ARRAY_FLEXIBLE_COLUMN

QT_I_LANGUAGE

QT_I_LANGUAGE

QT_K_MULTIPLE_NUMERICAL_QUESTION

QT_K_MULTIPLE_NUMERICAL_QUESTION

QT_L_LIST_DROPDOWN

QT_L_LIST_DROPDOWN

QT_M_MULTIPLE_CHOICE

QT_M_MULTIPLE_CHOICE

QT_N_NUMERICAL

QT_N_NUMERICAL

QT_O_LIST_WITH_COMMENT

QT_O_LIST_WITH_COMMENT

QT_P_MULTIPLE_CHOICE_WITH_COMMENTS

QT_P_MULTIPLE_CHOICE_WITH_COMMENTS

QT_Q_MULTIPLE_SHORT_TEXT

QT_Q_MULTIPLE_SHORT_TEXT

QT_R_RANKING_STYLE

QT_R_RANKING_STYLE

QT_S_SHORT_FREE_TEXT

QT_S_SHORT_FREE_TEXT

QT_T_LONG_FREE_TEXT

QT_T_LONG_FREE_TEXT

QT_U_HUGE_FREE_TEXT

QT_U_HUGE_FREE_TEXT

QT_X_BOILERPLATE_QUESTION

QT_X_BOILERPLATE_QUESTION

QT_Y_YES_NO_RADIO

QT_Y_YES_NO_RADIO

QT_Z_LIST_RADIO_FLEXIBLE

QT_Z_LIST_RADIO_FLEXIBLE

QT_EXCLAMATION_LIST_DROPDOWN

QT_EXCLAMATION_LIST_DROPDOWN

QT_VERTICAL_FILE_UPLOAD

QT_VERTICAL_FILE_UPLOAD

QT_ASTERISK_EQUATION

QT_ASTERISK_EQUATION

QT_COLON_ARRAY_MULTI_FLEX_NUMBERS

QT_COLON_ARRAY_MULTI_FLEX_NUMBERS

QT_SEMICOLON_ARRAY_MULTI_FLEX_TEXT

QT_SEMICOLON_ARRAY_MULTI_FLEX_TEXT

Properties

question

question : \Question
var

Type(s)

\Question

code

code : string
var

Type(s)

string

description

description : string
var

Type(s)

string

Group name

group : string
var

Group name

Type(s)

string

whether has subquestions //TODO make it boolean instead

subquestions : integer
var

whether has subquestions //TODO make it boolean instead

Type(s)

integer

whether it can be used inside Assessments / Quizmode

assessable : integer
var

whether it can be used inside Assessments / Quizmode

Type(s)

integer

whether has default values

hasdefaultvalues : integer
var

whether has default values

Type(s)

integer

number of answer scales

answerscales : integer
var

number of answer scales

Type(s)

integer

the css class for question (container??)

class : string
var

the css class for question (container??)

Type(s)

string

question

question : \Question

Type(s)

\Question

questionRenderer

questionRenderer : \QuestionRenderer

Type(s)

\QuestionRenderer

fieldType

fieldType : string

The type of field question needs for storing data

Type(s)

string

fieldDataType

fieldDataType : string

numeric vs string types

Type(s)

string

isText

isText : boolean

Whether the type is text (string longer than char)

Type(s)

boolean

isChar

isChar : boolean

Whether the type is char (one-character-string)

Type(s)

boolean

isString

isString : boolean

Whether the type is string (text or char)

Type(s)

boolean

isNumeric

isNumeric : boolean

Whether the type numeric (integer, double)

Type(s)

boolean

isInteger

isInteger : boolean

Whether the type integer

{@inheritdoc}

Type(s)

boolean