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 |
__construct( $iQuestionId)
attributeNames()
findOne(string $pk): null|static
string
primary key of model
null|static
getAdvancedOptions(integer $iQuestionID = null,integer $sQuestionType = null,string $sLanguage = null,string $sQuestionTemplate = null): array
deprecated | use getPreformattedBlockOfAdvancedSettings() instead of this function |
---|---|
Throws |
|
integer
integer
string
string
array
getClearDefaultSwitch()
getEncryptionSwitch()
getGeneralSettingsArray(integer $iQuestionID = null,integer $sQuestionType = null,string $sLanguage = null,null $question_template = null): array
Throws |
|
---|
integer
integer
string
null
array
getMandatorySetting()
getOtherSwitch()
getPreformattedBlockOfAdvancedSettings(\Question|\QuestionCreate $oQuestion,string $sQuestionTheme = null): array
The advanced settings are the part at the bottom of the qe. They depend on the question type and the question theme. Result should look like: Display --> category repeat_headings --> attributename name title inputtpye formElementId formElementName formElementHelp formElementValue aFormElementOptions answer_width name ... Logic min_answers name ...
Throws |
|
---|
\Question|\QuestionCreate
string
array
getQuestionGroupSelector()
getQuestionThemeOption( $currentSetQuestionTheme = null)
getRelevanceEquationInput()
getSaveAsDefaultSwitch()
getValidationInput()
modelsAttributes(): array
array
parseFromAttributeHelper( $sAttributeKey, $aAttributeArray, $formElementValue): array
array
iQuestionId :
sQuestionType :
sLanguage :
oQuestion :
aQuestionAttributes :