DummyStorage

Implements \LimeSurvey\PluginManager\iPluginStorage

package

Default

Methods

Constructor must not take argument.

__construct() 

The constructor must be part of the interface since our Plugin factory calls it and thus must know its arguments.

Always fail to get.

get(object $plugin,  $key = null, string $model = null, integer $id = null, mixed $default = null, string $language = null) : mixed

Arguments

$plugin

object

The plugin object getting its data.

$key

$model

string

Name of a model in case its model specific plugin data, like for a specific question or survey.

$id

integer

Id of the model for which the data is retreived

$default

mixed

The default value to use when none present

$language

string

The optional language to use

Response

mixed

The data stored.

Always fail to save.

set(object $plugin, string $key, mixed $data, string $model = 'NULL', integer $id = 'NULL', string $language = 'NULL') 

Arguments

$plugin

object

The plugin object getting its data.

$key

string

The storage key to identify the data.

$data

mixed

The data to be stored, serialized using serialize.

$model

string

Name of a model in case its model specific plugin data, like for a specific question or survey.

$id

integer

Id of the model for which the data is retreived

$language

string

The optional language to use