iPluginStorage

Extends

Methods

Returns plugin data.

get(object $plugin, $key = null, string $model = null, int $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

int

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, int $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

int

Id of the model for which the data is retreived

$language

string

The optional language to use

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.