Метод | Описание | |
---|---|---|
__construct ( |
||
getAllMeasurableSettings ( integer $idSite, string | null $idMeasurableType = null ) : |
||
getAllSystemSettings ( ) : |
Returns all available system settings. A plugin has to specify a file named SystemSettings.php containing a class named SystemSettings that extends Piwik\Settings\Plugin\SystemSettings in order to be considered as a system setting. Otherwise the settings for a plugin won't be available. | |
getAllUserSettings ( ) : |
Returns all available user settings. A plugin has to specify a file named UserSettings.php containing a class named UserSettings that extends Piwik\Settings\Plugin\UserSettings in order to be considered as a plugin setting. Otherwise the settings for a plugin won't be available. | |
getMeasurableSettings ( string $pluginName, integer $idSite, string | null $idType = null ) : |
||
getSystemSettings ( string $pluginName ) : |
Get user settings implemented by a specific plugin (if implemented by this plugin). | |
getUserSettings ( string $pluginName ) : |
Get user settings implemented by a specific plugin (if implemented by this plugin). |
Метод | Описание | |
---|---|---|
getLoadedAndActivated ( $pluginName ) |
public getAllMeasurableSettings ( integer $idSite, string | null $idMeasurableType = null ) : |
||
$idSite | integer | The ID of a site. If a site is about to be created pass idSite = 0. |
$idMeasurableType | string | null | If null, idType will be detected automatically if the site already exists. Only needed to set a value when idSite = 0 (this is the case when a site is about) to be created. |
Результат |
public getAllSystemSettings ( ) : |
||
Результат | An array containing array([pluginName] => [setting instance]). |
public getAllUserSettings ( ) : |
||
Результат | An array containing array([pluginName] => [setting instance]). |
public getMeasurableSettings ( string $pluginName, integer $idSite, string | null $idType = null ) : |
||
$pluginName | string | The name of a plugin. |
$idSite | integer | The ID of a site. If a site is about to be created pass idSite = 0. |
$idType | string | null | If null, idType will be detected automatically if the site already exists. Only needed to set a value when idSite = 0 (this is the case when a site is about) to be created. |
Результат | Returns null if no MeasurableSettings implemented by this plugin or when plugin is not loaded and activated. Returns an instance of the settings otherwise. |
public getSystemSettings ( string $pluginName ) : |
||
$pluginName | string | |
Результат |
public getUserSettings ( string $pluginName ) : |
||
$pluginName | string | |
Результат |