This is a base class to enable all question tpyes to extend the general settings.
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
getGeneralSettingsArray(integer $iQuestionID = null,integer $sQuestionType = null,string $sLanguage = null,null $question_template = null): array
Throws |
|
---|
integer
integer
string
null
array
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 ...
todo | Return data-value objects instead of array |
---|---|
Throws |
|
\Question|\QuestionCreate
string
array
modelsAttributes(): array
array
parseFromAttributeHelper( $sAttributeKey, $aAttributeArray, $formElementValue): array
array
iQuestionId :
sQuestionType :
sLanguage :
oQuestion :
aQuestionAttributes :