LimeSurvey API - Master branch

HiddenQuestionAttributeProvider extends QuestionAttributeProvider
in package

Provides question attribute definitions from question types

Table of Contents

Methods

getDefinitions()  : array<string, array<string|int, mixed>>
Returns question attribute definitions for the specified options from one source
getBaseDefinition()  : array<string, mixed>
Get default settings for an attribute, return an array of string|null
getHiddenAttributes()  : array<string, array<string|int, mixed>>
Returns question attributes from hardcoded array and convert it to array
getQuestionType()  : mixed
Extracts the question type from the $options.

Methods

getDefinitions()

Returns question attribute definitions for the specified options from one source

public getDefinitions([mixed $options = [] ]) : array<string, array<string|int, mixed>>
Parameters
$options : mixed = []

to use

Tags
inheritdoc
Return values
array<string, array<string|int, mixed>>

array of question attribute definitions

getBaseDefinition()

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

protected static getBaseDefinition() : array<string, mixed>
Return values
array<string, mixed>

getHiddenAttributes()

Returns question attributes from hardcoded array and convert it to array

protected getHiddenAttributes(string $questionType) : array<string, array<string|int, mixed>>
Parameters
$questionType : string

the question type to retrieve the attributes for

Return values
array<string, array<string|int, mixed>>

The hidden attribute settings for this question type

getQuestionType()

Extracts the question type from the $options.

protected static getQuestionType(array<string, mixed> $options) : mixed

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

Parameters
$options : array<string, mixed>

        
On this page

Search results