LimeSurvey API - Master branch

RenderListRadio extends QuestionBaseRenderer
in package

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)

Table of Contents

Constants

OTHER_POS_AFTER_OPTION  = 'specific'
OTHER_POS_BEFORE_NOANSWER  = 'default'
OTHER_POS_END  = 'end'
OTHER_POS_START  = 'beginning'

Properties

$bPreview  : mixed
$bRenderDirect  : mixed
$checkconditionFunction  : mixed
$oQuestion  : mixed
$sCoreClass  : mixed
$sHtml  : mixed
$sSGQA  : mixed
$aAnswerOptions  : mixed
$aFieldArray  : mixed
$answerBeforeOther  : string
$aPackages  : mixed
$aQuestionAttributes  : mixed
$aScriptFiles  : mixed
$aScripts  : mixed
$aStyles  : mixed
$aSubQuestions  : mixed
$aSurveySessionArray  : mixed
$hasOther  : bool
$iColumnWidth  : mixed
$iCountAnswers  : mixed
$iNbCols  : mixed
$mSessionValue  : mixed
$otherPosition  : int
$sLanguage  : mixed
$sOthertext  : mixed
$bColumnIsOpen  : mixed
$iMaxRowsByColumn  : mixed
$inputnames  : mixed
$iRowCount  : mixed

Methods

__construct()  : mixed
addNoAnswerRow()  : mixed
addOtherRow()  : mixed
attributeNames()  : mixed
{@inheritdoc}
findOne()  : null|static
getCurrentRelevecanceClass()  : string
Return class of a specific row (hidden by relevance)
getLabelInputWidth()  : array<string|int, mixed>
Find the label / input width
getMainView()  : mixed
getRows()  : mixed
includeKeypad()  : mixed
Include Keypad headers
modelsAttributes()  : array<string|int, mixed>
Models attributes as array indexed by primary key
render()  : mixed
renderRowsArray()  : mixed
addScript()  : mixed
applyPackages()  : mixed
applyScriptfiles()  : mixed
applyScripts()  : mixed
applyStyles()  : mixed
getAnswerCount()  : mixed
getFromSurveySession()  : mixed
getQuestionAttribute()  : mixed
getQuestionCount()  : mixed
getQuestionScript()  : string|null
Returns the question script to render depending on the language.
getTimeSettingRender()  : mixed
registerAssets()  : mixed
setAnsweroptions()  : mixed
setDefaultIfEmpty()  : mixed
setSubquestions()  : mixed

Constants

OTHER_POS_AFTER_OPTION

public mixed OTHER_POS_AFTER_OPTION = 'specific'

OTHER_POS_BEFORE_NOANSWER

public mixed OTHER_POS_BEFORE_NOANSWER = 'default'

Properties

$sCoreClass

public mixed $sCoreClass = "ls-answers answers-list radio-list"

$answerBeforeOther

protected string $answerBeforeOther

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

$hasOther

protected bool $hasOther

indicates if the question has the 'Other' option enabled

$otherPosition

protected int $otherPosition

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)

Methods

__construct()

public __construct(mixed $aFieldArray[, mixed $bRenderDirect = false ]) : mixed
Parameters
$aFieldArray : mixed
$bRenderDirect : mixed = false

attributeNames()

{@inheritdoc}

public attributeNames() : mixed

findOne()

public static findOne(string $pk) : null|static
Parameters
$pk : string

primary key of model

Return values
null|static

getCurrentRelevecanceClass()

Return class of a specific row (hidden by relevance)

public getCurrentRelevecanceClass(string $myfname) : string
Parameters
$myfname : string

The name of the question/row to test

Return values
string

getLabelInputWidth()

Find the label / input width

public getLabelInputWidth() : array<string|int, mixed>
Return values
array<string|int, mixed>

labelWidth as integer,inputWidth as integer,defaultWidth as boolean

modelsAttributes()

Models attributes as array indexed by primary key

public static modelsAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed>

render()

public render([mixed $sCoreClasses = '' ]) : mixed
Parameters
$sCoreClasses : mixed = ''

addScript()

protected addScript(mixed $name, mixed $content[, mixed $position = LSYii_ClientScript::POS_BEGIN ][, mixed $appendId = false ]) : mixed
Parameters
$name : mixed
$content : mixed
$position : mixed = LSYii_ClientScript::POS_BEGIN
$appendId : mixed = false

getAnswerCount()

protected getAnswerCount([mixed $iScaleId = 0 ]) : mixed
Parameters
$iScaleId : mixed = 0

getFromSurveySession()

protected getFromSurveySession(mixed $sIndex[, mixed $default = "" ]) : mixed
Parameters
$sIndex : mixed
$default : mixed = ""

getQuestionAttribute()

protected getQuestionAttribute(mixed $key1[, mixed $key2 = null ]) : mixed
Parameters
$key1 : mixed
$key2 : mixed = null

getQuestionCount()

protected getQuestionCount([mixed $iScaleId = 0 ]) : mixed
Parameters
$iScaleId : mixed = 0

getQuestionScript()

Returns the question script to render depending on the language.

protected getQuestionScript() : string|null

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

Return values
string|null

setAnsweroptions()

protected setAnsweroptions([mixed $scale_id = null ]) : mixed
Parameters
$scale_id : mixed = null

setDefaultIfEmpty()

protected setDefaultIfEmpty(mixed $value, mixed $default) : mixed
Parameters
$value : mixed
$default : mixed

setSubquestions()

protected setSubquestions([mixed $scale_id = null ]) : mixed
Parameters
$scale_id : mixed = null

        
On this page

Search results