RenderClass for Boilerplate Question * The ia Array contains the following 0 => string qid 1 => string sgqa 2 => string questioncode 3 => string question 4 => string type 5 => string gid 6 => string mandatory, 7 => string conditionsexist, 8 => string usedinconditions 0 => string used in group.php for question count 10 => string new group id for question in randomization group (GroupbyGroup Mode)
package | Default |
---|
__construct( $aFieldArray, $bRenderDirect = false)
addNoAnswerRow()
addOtherRow()
addScript( $name, $content, $position = \LSYii_ClientScript::POS_BEGIN, $appendId = false)
applyPackages()
applyScriptfiles()
applyScripts()
applyStyles()
attributeNames()
findOne(string $pk): null|static
string
primary key of model
null|static
getAnswerCount( $iScaleId)
getCurrentRelevecanceClass(string $myfname): string
string
The name of the question/row to test
string
getFromSurveySession( $sIndex, $default = "")
getLabelInputWidth(): array
array
labelWidth as integer,inputWidth as integer,defaultWidth as boolean
getMainView()
getQuestionAttribute( $key1, $key2 = null)
getQuestionCount( $iScaleId)
getQuestionScript(): string|null
If "Use for all languages" is set, the base language's script is used.
string|null
getRows()
getTimeSettingRender()
includeKeypad()
modelsAttributes(): array
array
registerAssets()
render()
renderRowsArray()
setDefaultIfEmpty( $value, $default)
setSubquestions( $scale_id = null)
OTHER_POS_BEFORE_NOANSWER
OTHER_POS_START
OTHER_POS_END
OTHER_POS_AFTER_OPTION
sCoreClass :
sOthertext :
iNbCols :
iColumnWidth :
iCountAnswers :
iMaxRowsByColumn :
iRowCount :
bColumnIsOpen :
inputnames :
hasOther :boolean
var | indicates if the question has the 'Other' option enabled |
---|
boolean
otherPosition :integer
var | the position where the 'Other' option should be placed. Possible values: 0 (Before no answer), 1 (At beginning), 2 (At end), 3 (After specific option) |
---|
integer
answerBeforeOther :string
var | the code of the answer after which the 'Other' option should be placed (if $otherPosition == 3) |
---|
string
oQuestion :
sSGQA :
sHtml :
bRenderDirect :
bPreview :
checkconditionFunction :
aFieldArray :
aQuestionAttributes :
aSurveySessionArray :
mSessionValue :
sLanguage :
aSubQuestions :
aAnswerOptions :
aPackages :
aScripts :
aScriptFiles :
aStyles :