Fetches question attribute definitions from the available providers
package | Default |
---|
__construct( $providers = null)
fetch(): \LimeSurvey\Models\Services\array<string,array>
Throws |
|
---|
\LimeSurvey\Models\Services\array
array of question attribute definitions
populateValues(\LimeSurvey\Models\Services\array<string,array> $attributeDefinitions,string|null $language = null): \LimeSurvey\Models\Services\array<string,array>
If no $language is specified, the values for all survey languages are retrieved. A question must be set with QuestionAttributeFetcher::setQuestion() before calling this method.
Throws |
|
---|
\LimeSurvey\Models\Services\array
the array of attribute definitions that will be filled with values
string|null
the language to use for i18n enabled attributes. If null, all survey languages are considered.
\LimeSurvey\Models\Services\array
the attributes from $attributeDefinitions, with their values.
resetOptions()
setAdvancedOnly(boolean $advancedOnly)
boolean
setOption(string $key,mixed $value)
string
the name of the filter
mixed
setQuestion(\Question $question)
setQuestionType(string $questionType)
string
the name of the question theme
setTheme(string $questionTheme)
string
the name of the question theme
question :\Question
providers :\LimeSurvey\Models\Services\array<QuestionAttributeProvider>
var | array of question attribute providers |
---|
\LimeSurvey\Models\Services\array