QuestionBaseRenderer

Extends \StaticModel

abstract Class QuestionTypeRoot The aFieldArray 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) 

Arguments

$aFieldArray

$bRenderDirect

addScript

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

Arguments

$name

$content

$position

$appendId

applyPackages

applyPackages() 

applyScriptfiles

applyScriptfiles() 

applyScripts

applyScripts() 

applyStyles

applyStyles() 

{@inheritdoc}

attributeNames() 
inherited

findOne

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

Arguments

$pk

string

primary key of model

Response

null|static

getAnswerCount

getAnswerCount( $iScaleId) 

Arguments

$iScaleId

Return class of a specific row (hidden by relevance)

getCurrentRelevecanceClass(string $myfname) : string

Arguments

$myfname

string

The name of the question/row to test

Response

string

getFromSurveySession

getFromSurveySession( $sIndex,  $default = "") 

Arguments

$sIndex

$default

Find the label / input width

getLabelInputWidth() : array

Response

array

labelWidth as integer,inputWidth as integer,defaultWidth as boolean

getMainView

getMainView() 
abstract

getQuestionAttribute

getQuestionAttribute( $key1,  $key2 = null) 

Arguments

$key1

$key2

getQuestionCount

getQuestionCount( $iScaleId) 

Arguments

$iScaleId

getRows

getRows() 
abstract

getTimeSettingRender

getTimeSettingRender() 

Include Keypad headers

includeKeypad() 

Models attributes as array indexed by primary key

modelsAttributes() : array
inherited static

Response

array

registerAssets

registerAssets() 

render

render() 
abstract

setAnsweroptions

setAnsweroptions( $scale_id = null) 

Arguments

$scale_id

setDefaultIfEmpty

setDefaultIfEmpty( $value,  $default) 

Arguments

$value

$default

setSubquestions

setSubquestions( $scale_id = null) 

Arguments

$scale_id

Properties

oQuestion

oQuestion : 

Type(s)

sSGQA

sSGQA : 

Type(s)

sHtml

sHtml : 

Type(s)

bRenderDirect

bRenderDirect : 

Type(s)

bPreview

bPreview : 

Type(s)

sCoreClass

sCoreClass : 

Type(s)

checkconditionFunction

checkconditionFunction : 

Type(s)

aFieldArray

aFieldArray : 

Type(s)

aQuestionAttributes

aQuestionAttributes : 

Type(s)

aSurveySessionArray

aSurveySessionArray : 

Type(s)

mSessionValue

mSessionValue : 

Type(s)

sLanguage

sLanguage : 

Type(s)

aSubQuestions

aSubQuestions : 

Type(s)

aAnswerOptions

aAnswerOptions : 

Type(s)

aPackages

aPackages : 

Type(s)

aScripts

aScripts : 

Type(s)

aScriptFiles

aScriptFiles : 

Type(s)

aStyles

aStyles : 

Type(s)