diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-10-25 05:22:44 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-10-25 05:22:44 +0400 |
commit | 1d44cdcb315b23d6191a23065e1157df94d41871 (patch) | |
tree | 398806845a90d117c5f0e78a00c5b0b502836972 /core/Settings | |
parent | 29446185192f6e24b640e681214054497b08caeb (diff) |
refs #4126 cleanup
Diffstat (limited to 'core/Settings')
-rw-r--r-- | core/Settings/Setting.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/core/Settings/Setting.php b/core/Settings/Setting.php index e410836c68..bb06efd9ab 100644 --- a/core/Settings/Setting.php +++ b/core/Settings/Setting.php @@ -10,9 +10,6 @@ */ namespace Piwik\Settings; -use Piwik\Common; -use Piwik\Piwik; -use Piwik\Plugin\Settings; /** * Base setting class. Extend this class to define your own type of setting. @@ -162,9 +159,7 @@ abstract class Setting } /** - * Gets the value or if no value is defined the default value of the setting. - * - * @return mixed + * @see StorageInterface::getSettingValue */ public function getValue() { @@ -172,6 +167,14 @@ abstract class Setting } /** + * @see StorageInterface::setSettingValue + */ + public function setValue($value) + { + return $this->storage->setSettingValue($this, $value); + } + + /** * Returns the key under which property name the setting will be stored. * * @return string |