Provides question attribute definitions from question types
package | Default |
---|
getAdvancedAttributesFromXml(string $xmlFilePath): \LimeSurvey\Models\Services\array<string,array>
string
Path to XML
\LimeSurvey\Models\Services\array
The advanced attribute settings for this question type
getBaseDefinition(): \LimeSurvey\Models\Services\array<string,mixed>
\LimeSurvey\Models\Services\array
getDefinitions(\LimeSurvey\Models\Services\array<string,mixed> $options = array()): \LimeSurvey\Models\Services\array<string,array>
\LimeSurvey\Models\Services\array
to use
\LimeSurvey\Models\Services\array
array of question attribute definitions
getGeneralAttibutesFromXml(string $xmlFilePath): \LimeSurvey\Models\Services\array<string,array>
string
Path to XML
\LimeSurvey\Models\Services\array
The general attribute settings for this question type
getQuestionAttributes(string $questionType,boolean $advancedOnly = false): \LimeSurvey\Models\Services\array<string,array>
Throws |
|
---|
string
: type of question (this is the attribute 'question_type' in table question_theme)
boolean
If true, only fetch advanced attributes
\LimeSurvey\Models\Services\array
the attribute settings for this question type returns values from getGeneralAttributesFromXml and getAdvancedAttributesFromXml if this fails getAttributesDefinition and getDefaultSettings are returned
getQuestionType(\LimeSurvey\Models\Services\array<string,mixed> $options):
If it's not explicitly set, it tries to use a question object.
\LimeSurvey\Models\Services\array