iPluginStorage

Extends

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.

Returns plugin data.

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.

Stores plugin data.

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