ThemeQuestionAttributeProvider

Extends\LimeSurvey\Models\Services\QuestionAttributeProvider

Provides question attribute definitions from question themes

package

Default

Methods

Gets the additional attributes for an extended theme from xml file.

getAttributesFromQuestionTheme(string $questionThemeName,string $questionType): \LimeSurvey\Models\Services\array<string,array>

If there are no attributes, an empty array is returned

Arguments

$questionThemeName

string

the question theme name (see table question theme "name")

$questionType

string

the extended typ (see table question_themes "extends")

Response

\LimeSurvey\Models\Services\array

additional attributes for an extended theme or empty array

Get default settings for an attribute, return an array of string|null

getBaseDefinition(): \LimeSurvey\Models\Services\array<string,mixed>
inheritedstatic

Response

\LimeSurvey\Models\Services\array

Returns question attribute definitions for the specified options from one source

getDefinitions(\LimeSurvey\Models\Services\array<string,mixed> $options = array()): \LimeSurvey\Models\Services\array<string,array>
inheritedabstract

Arguments

$options

\LimeSurvey\Models\Services\array

to use

Response

\LimeSurvey\Models\Services\array

array of question attribute definitions

Extracts the question theme from the $options.

getQuestionTheme(\LimeSurvey\Models\Services\array<string,mixed> $options): 
static

If it's not explicitly set, it tries to use a question object.

Arguments

$options

\LimeSurvey\Models\Services\array

Response

Extracts the question type from the $options.

getQuestionType(\LimeSurvey\Models\Services\array<string,mixed> $options): 
inheritedstatic

If it's not explicitly set, it tries to use a question object.

Arguments

$options

\LimeSurvey\Models\Services\array

Response