PluginQuestionAttributeProvider

Extends\LimeSurvey\Models\Services\QuestionAttributeProvider

Provides question attribute definitions from plugins

package

Default

Methods

Returns the question attributes added by plugins ('newQuestionAttributes' event) for the specified question type.

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

Arguments

$questionType

string

the question type to retrieve the attributes for.

Response

\LimeSurvey\Models\Services\array

the question attributes added by plugins

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 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