Topics

Class Storage

Key-value storage, where any plugin can store it's data

Namespace: Ip

Methods:

mixed get( string $pluginName , string $key , [ null $defaultValue = null ] )

Get a value from storage

Parameters:

string $pluginName Plugin name
string $key Option name
null $defaultValue Returned if specified key has no value assigned

Return values:

mixed
set( string $pluginName , string $key , mixed $value )

Set storage value

Parameters:

string $pluginName Plugin name
string $key Option key
mixed $value Option value
array getAll( string $plugin )

Get all storage values for the plugin

Parameters:

string $plugin

Return values:

array Key=>value array of plugin options
remove( string $pluginName , string $key )

Remove storage key for specific plugin

Parameters:

string $pluginName Plugin name
string $key Key to remove
removeAll( string $pluginName )

Remove all storage values for the plugin

Parameters:

string $pluginName Plugin name
comments powered by Disqus