package | Default |
---|
__construct()
The constructor must be part of the interface since our Plugin factory calls it and thus must know its arguments.
get(\LimeSurvey\PluginManager\iPlugin $plugin,string $key = null,string $model = null,integer $id = null,mixed $default = null,string $language = null): mixed
string
Key for the setting; passing null will return all keys.
string
Optional model name to which the data was attached.
integer
Optional id of the model instance to which the data was attached.
mixed
Default value to return if key could not be found.
string
Optional language identifier used for retrieving the setting.
mixed
Returns the value from the database or null if not set.
getGeneric(\LimeSurvey\PluginManager\iPlugin $plugin,string $key,string $model,integer $id,mixed $default): mixed
string
string
Optional model name to which the data was attached.
integer
Optional id of the model instance to which the data was attached.
mixed
Default value to return if key could not be found.
mixed
Returns the value from the database or null if not set.
set(\LimeSurvey\PluginManager\iPlugin $plugin,string $key,mixed $data,string $model = null,integer $id = null,string $language = null): boolean
string
The storage key to identify the data.
mixed
The data to be stored, serialized using serialize.
string
Optional model name to which the data was attached.
integer
Optional id of the model instance to which the data was attached.
string
Optional language identifier used for storing the setting.
boolean
setGeneric(\LimeSurvey\PluginManager\iPlugin $plugin,string $key, $data,string $model,integer $id,string $language): boolean
string
string
Optional model name to which the data was attached.
integer
Optional id of the model instance to which the data was attached.
string
Optional language identifier used for storing the setting.
boolean