package |
Default |
---|
__construct(\LimeSurvey\PluginManager\iPlugin $plugin, \LimeSurvey\PluginManager\LimesurveyApi $api, integer $questionId = null, integer $responseId = null) : void
integer
integer
Pass a response id to load results.
get(string $key = null, mixed $default = null, string $language = null, integer $questionId = null) : boolean
string
String identifier for data.
mixed
Default value.
string
Language to retrieve.
integer
By default uses the question id for the current instance. Override this to read from another question.
boolean
getAttributes(\LimeSurvey\PluginManager\type $languages = null) : \LimeSurvey\PluginManager\type
Optionally pass one or more languages to also get current values. Pass * to get all stored languages.
\LimeSurvey\PluginManager\type
\LimeSurvey\PluginManager\type
getColumns()
getCount() : integer
Defaults to 1, can be set to 0 if this question should not be counted like in case for display only or equation questions.
integer
getGUID() : string
string
getResponse() : \LimeSurvey\PluginManager\type
\LimeSurvey\PluginManager\type
getVariables() : array
The returned array contains a key for each variable name and the value is an array with meta data.
array
loadSubQuestions(integer $questionId)
integer
saveAttributes(array $attributeValues, $qid = null) : boolean
The default implementation just iterates over the array and saves each property.
array
boolean
True on success, false on failure(s).
set(string $key, mixed $value, string $language = null, $questionId = null) : boolean
string
mixed
string
boolean
api : \LimeSurvey\PluginManager\LimesurveyApi
attributes : array
var |
---|
array
columns : array
The supported keys for column meta data are:
var |
---|
array
defaultAttributes : array
var |
---|
array
defaultAttributeProperties : array
var |
---|
array
info :
questionId : integer
var |
The question id for this question object instance. |
---|
integer
responseId : integer
var |
The response id for this question object instance. |
---|
integer
subQuestions : array<mixed,\LimeSurvey\PluginManager\iQuestion>
signature : array
After initial release the contents of this array may NEVER be changed. Changing the contents of the array will identify the question object as a new question type and will break many if not all existing surveys.
var |
---|
array