PHP Class Piwik\Settings\Settings

Afficher le fichier Open project: piwik/piwik Class Usage Examples

Protected Properties

Свойство Type Description
$pluginName
$title string By default the plugin name is shown in the UI when managing plugin settings. However, you can overwrite the displayed title by specifying a title.

Méthodes publiques

Méthode Description
__construct ( )
getPluginName ( )
getSetting ( $name ) : Piwik\Settings\Setting
getSettingsWritableByCurrentUser ( ) : Piwik\Settings\Setting[] Returns the settings that can be displayed for the current user.
getTitle ( )
save ( ) Saves (persists) the current setting values in the database.

Méthodes protégées

Méthode Description
addSetting ( Piwik\Settings\Setting $setting ) Makes a new plugin setting available.
init ( ) Implemented by descendants. This method should define plugin settings (via the {@link addSetting()}) method and set the introduction text (via the {@link setIntroduction()}).

Method Details

__construct() public méthode

public __construct ( )

addSetting() protected méthode

Makes a new plugin setting available.
protected addSetting ( Piwik\Settings\Setting $setting )
$setting Piwik\Settings\Setting

getPluginName() public méthode

public getPluginName ( )

getSetting() public méthode

public getSetting ( $name ) : Piwik\Settings\Setting
Résultat Piwik\Settings\Setting

getSettingsWritableByCurrentUser() public méthode

Returns the settings that can be displayed for the current user.
public getSettingsWritableByCurrentUser ( ) : Piwik\Settings\Setting[]
Résultat Piwik\Settings\Setting[]

getTitle() public méthode

public getTitle ( )

init() abstract protected méthode

Implemented by descendants. This method should define plugin settings (via the {@link addSetting()}) method and set the introduction text (via the {@link setIntroduction()}).
abstract protected init ( )

save() public méthode

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

Property Details

$pluginName protected_oe property

protected $pluginName

$title protected_oe property

By default the plugin name is shown in the UI when managing plugin settings. However, you can overwrite the displayed title by specifying a title.
protected string $title
Résultat string