PHP Class Piwik\Settings\Plugin\SystemConfigSetting

See {@link \Piwik\Settings\Setting}.
Inheritance: extends Piwik\Settings\Setting
Show file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
__construct ( string $name, mixed $defaultValue, string $type, string $pluginName, $configSectionName ) Constructor.
isWritableByCurrentUser ( ) : boolean Returns true if this setting is writable for the current user, false if otherwise. In case it returns writable for the current user it will be visible in the Plugin settings UI.

Method Details

__construct() public method

Constructor.
public __construct ( string $name, mixed $defaultValue, string $type, string $pluginName, $configSectionName )
$name string The setting's persisted name.
$defaultValue mixed Default value for this setting if no value was specified.
$type string Eg an array, int, ... see TYPE_* constants
$pluginName string The name of the plugin the system setting belongs to.

isWritableByCurrentUser() public method

Returns true if this setting is writable for the current user, false if otherwise. In case it returns writable for the current user it will be visible in the Plugin settings UI.