PHP Class Piwik\Settings\Storage\Backend\PluginSettingsTable

If a value that needs to be stored is an array, will insert a new row for each value of this array.
Inheritance: implements Piwik\Settings\Storage\Backend\BackendInterface
Show file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( $pluginName, $userLogin )
delete ( )
getStorageId ( )
load ( )
removeAllSettingsForPlugin ( string $pluginName ) Unsets all settings for a plugin. The settings will be removed from the database. Used when a plugin is uninstalled.
removeAllUserSettingsForUser ( string $userLogin ) Unsets all settings for a user. The settings will be removed from the database. Used when a user is deleted.
save ( $values ) Saves (persists) the current setting values in the database.

Private Methods

Method Description
getTableName ( )
initDbIfNeeded ( )

Method Details

__construct() public method

public __construct ( $pluginName, $userLogin )

delete() public method

public delete ( )

getStorageId() public method

public getStorageId ( )

load() public method

public load ( )

removeAllSettingsForPlugin() public static method

Unsets all settings for a plugin. The settings will be removed from the database. Used when a plugin is uninstalled.
public static removeAllSettingsForPlugin ( string $pluginName )
$pluginName string

removeAllUserSettingsForUser() public static method

Unsets all settings for a user. The settings will be removed from the database. Used when a user is deleted.
public static removeAllUserSettingsForUser ( string $userLogin )
$userLogin string

save() public method

Saves (persists) the current setting values in the database.
public save ( $values )