PHP Класс Piwik\Settings\Storage\Factory

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getConfigStorage ( string $section ) : mixed
getMeasurableSettingsStorage ( integer $idSite, string $pluginName ) : Storage Get a storage instance for measurable settings.
getNonPersistentStorage ( string $key ) : Storage Get a storage with a backend that will never persist or load any value.
getPluginStorage ( string $pluginName, string $userLogin ) : Storage Get a storage instance for plugin settings.
getSitesTable ( integer $idSite ) : Storage Get a storage instance for settings that will be saved in the "site" table.

Приватные методы

Метод Описание
makeStorage ( Piwik\Settings\Storage\Backend\BackendInterface $backend )

Описание методов

getConfigStorage() публичный Метод

public getConfigStorage ( string $section ) : mixed
$section string
Результат mixed

getMeasurableSettingsStorage() публичный Метод

The storage will hold values that belong to the given idSite and plugin name. Be aware that a storage instance for a specific site and plugin will be cached during one request for better performance.
public getMeasurableSettingsStorage ( integer $idSite, string $pluginName ) : Storage
$idSite integer If idSite is empty it will use a backend that never actually persists any value. Pass $idSite = 0 to create a storage for a site that is about to be created.
$pluginName string
Результат Storage

getNonPersistentStorage() публичный Метод

Get a storage with a backend that will never persist or load any value.
public getNonPersistentStorage ( string $key ) : Storage
$key string
Результат Storage

getPluginStorage() публичный Метод

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.
public getPluginStorage ( string $pluginName, string $userLogin ) : Storage
$pluginName string
$userLogin string Use an empty string if settings should be not for a specific login
Результат Storage

getSitesTable() публичный Метод

The storage will hold values that belong to the given idSite. Be aware that a storage instance for a specific site will be cached during one request for better performance.
public getSitesTable ( integer $idSite ) : Storage
$idSite integer If idSite is empty it will use a backend that never actually persists any value. Pass $idSite = 0 to create a storage for a site that is about to be created.
Результат Storage