RenderListRadio

Extends\QuestionBaseRenderer

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

Methods

__construct

__construct( $aFieldArray, $bRenderDirect = false)
inherited

Arguments

$aFieldArray

$bRenderDirect

addNoAnswerRow

addNoAnswerRow()

addOtherRow

addOtherRow()

addScript

addScript( $name, $content, $position = \LSYii_ClientScript::POS_BEGIN, $appendId = false)
inherited

Arguments

$name

$content

$position

$appendId

applyPackages

applyPackages()
inherited

applyScriptfiles

applyScriptfiles()
inherited

applyScripts

applyScripts()
inherited

applyStyles

applyStyles()
inherited

{@inheritdoc}

attributeNames()
inherited

findOne

findOne(string $pk): null|static
inheritedstatic

Arguments

$pk

string

primary key of model

Response

null|static

getAnswerCount

getAnswerCount( $iScaleId)
inherited

Arguments

$iScaleId

Return class of a specific row (hidden by relevance)

getCurrentRelevecanceClass(string $myfname): string
inherited

Arguments

$myfname

string

The name of the question/row to test

Response

string

getFromSurveySession

getFromSurveySession( $sIndex, $default = "")
inherited

Arguments

$sIndex

$default

Find the label / input width

getLabelInputWidth(): array
inherited

Response

array

labelWidth as integer,inputWidth as integer,defaultWidth as boolean

getMainView

getMainView()
inheritedabstract

getQuestionAttribute

getQuestionAttribute( $key1, $key2 = null)
inherited

Arguments

$key1

$key2

getQuestionCount

getQuestionCount( $iScaleId)
inherited

Arguments

$iScaleId

Returns the question script to render depending on the language.

getQuestionScript(): string|null
inherited

If "Use for all languages" is set, the base language's script is used.

Response

string|null

getRows

getRows()
inheritedabstract

getTimeSettingRender

getTimeSettingRender()
inherited

Include Keypad headers

includeKeypad()
inherited

Models attributes as array indexed by primary key

modelsAttributes(): array
inheritedstatic

Response

array

registerAssets

registerAssets()
inherited

render

render()
inheritedabstract

renderRowsArray

renderRowsArray()

setAnsweroptions

setAnsweroptions( $scale_id = null)
inherited

Arguments

$scale_id

setDefaultIfEmpty

setDefaultIfEmpty( $value, $default)
inherited

Arguments

$value

$default

setSubquestions

setSubquestions( $scale_id = null)
inherited

Arguments

$scale_id

Constants

OTHER_POS_BEFORE_NOANSWER

OTHER_POS_BEFORE_NOANSWER

OTHER_POS_START

OTHER_POS_START

OTHER_POS_END

OTHER_POS_END

OTHER_POS_AFTER_OPTION

OTHER_POS_AFTER_OPTION

Properties

sCoreClass

sCoreClass :
inherited

Type(s)

sOthertext

sOthertext :

Type(s)

iNbCols

iNbCols :

Type(s)

iColumnWidth

iColumnWidth :

Type(s)

iCountAnswers

iCountAnswers :

Type(s)

iMaxRowsByColumn

iMaxRowsByColumn :

Type(s)

iRowCount

iRowCount :

Type(s)

bColumnIsOpen

bColumnIsOpen :

Type(s)

inputnames

inputnames :

Type(s)

indicates if the question has the 'Other' option enabled

hasOther :boolean
var

indicates if the question has the 'Other' option enabled

Type(s)

boolean

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)

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)

Type(s)

integer

the code of the answer after which the 'Other' option should be placed (if $otherPosition == 3)

answerBeforeOther :string
var

the code of the answer after which the 'Other' option should be placed (if $otherPosition == 3)

Type(s)

string

oQuestion

oQuestion :
inherited

Type(s)

sSGQA

sSGQA :
inherited

Type(s)

sHtml

sHtml :
inherited

Type(s)

bRenderDirect

bRenderDirect :
inherited

Type(s)

bPreview

bPreview :
inherited

Type(s)

checkconditionFunction

checkconditionFunction :
inherited

Type(s)

aFieldArray

aFieldArray :
inherited

Type(s)

aQuestionAttributes

aQuestionAttributes :
inherited

Type(s)

aSurveySessionArray

aSurveySessionArray :
inherited

Type(s)

mSessionValue

mSessionValue :
inherited

Type(s)

sLanguage

sLanguage :
inherited

Type(s)

aSubQuestions

aSubQuestions :
inherited

Type(s)

aAnswerOptions

aAnswerOptions :
inherited

Type(s)

aPackages

aPackages :
inherited

Type(s)

aScripts

aScripts :
inherited

Type(s)

aScriptFiles

aScriptFiles :
inherited

Type(s)

aStyles

aStyles :
inherited

Type(s)