public function getPluginStorage($pluginName, $userLogin)
    {
        $id = $pluginName . '#' . $userLogin;

        if (!isset($this->cache[$id])) {
            $backend = new Backend\PluginSettingsTable($pluginName, $userLogin);
            $this->cache[$id] = $this->makeStorage($backend);
        }

        return $this->cache[$id];
    }
public function getPluginStorage($pluginName, $userLogin)
    {
        $id = $pluginName . '#' . $userLogin;

        if (!isset($this->cache[$id])) {
            $backend = new Backend\PluginSettingsTable($pluginName, $userLogin);
            $this->cache[$id] = $this->makeStorage($backend);
        }

        return $this->cache[$id];
    }
public function getPluginStorage ( $ pluginName , $ userLogin ) { $ id = $ pluginName . '#' . $ userLogin ; if ( ! isset ( $ this -> cache [ $ id ] ) ) { $ backend = new Backend \ PluginSettingsTable ( $ pluginName , $ userLogin ) ; $ this -> cache [ $ id ] = $ this -> makeStorage ( $ backend ) ; } return $ this -> cache [ $ id ] ; }
Get a storage instance for plugin settings.

The storage will hold values that belong to the given plugin name and user login. Be aware that instances
for a specific plugin and login will be cached during one request for better performance.

@param string $pluginName
@param string $userLogin Use an empty string if settings should be not for a specific login
@return Storage
Get a storage instance for plugin settings .