QuestionBaseDataSet

Extends \StaticModel

This is a base class to enable all question tpyes to extend the general settings.

TODO

: Create an xml based solution to use external question type definitions as well

package

Default

Methods

__construct

__construct( $iQuestionId) 

Arguments

$iQuestionId

{@inheritdoc}

attributeNames() 
inherited

findOne

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

Arguments

$pk

string

primary key of model

Response

null|static

Returns a preformatted block of the advanced settings for the question editor

getAdvancedOptions(integer $iQuestionID = null, integer $sQuestionType = null, string $sLanguage = null, string $sQuestionTemplate = null) : array
Throws
\CException

Arguments

$iQuestionID

integer

$sQuestionType

integer

$sLanguage

string

$sQuestionTemplate

string

Response

array

getClearDefaultSwitch

getClearDefaultSwitch() 

getEncryptionSwitch

getEncryptionSwitch() 

Returns a preformatted block of the general settings for the question editor

getGeneralSettingsArray(integer $iQuestionID = null, integer $sQuestionType = null, string $sLanguage = null, null $question_template = null) : array
Throws
\CException

Arguments

$iQuestionID

integer

$sQuestionType

integer

$sLanguage

string

$question_template

null

Response

array

getMandatorySetting

getMandatorySetting() 

getOtherSwitch

getOtherSwitch() 

getQuestionGroupSelector

getQuestionGroupSelector() 

getQuestionThemeOption

getQuestionThemeOption( $currentSetQuestionTheme = null) 

Arguments

$currentSetQuestionTheme

getRelevanceEquationInput

getRelevanceEquationInput() 

getSaveAsDefaultSwitch

getSaveAsDefaultSwitch() 

getValidationInput

getValidationInput() 

Models attributes as array indexed by primary key

modelsAttributes() : array
inherited static

Response

array

parseFromAttributeHelper

parseFromAttributeHelper( $sAttributeKey,  $aAttributeArray) 

Arguments

$sAttributeKey

$aAttributeArray

Properties

iQuestionId

iQuestionId : 

Type(s)

sQuestionType

sQuestionType : 

Type(s)

sLanguage

sLanguage : 

Type(s)

oQuestion

oQuestion : 

Type(s)

aQuestionAttributes

aQuestionAttributes : 

Type(s)