diff options
author | Geekologist <Conver@users.noreply.github.com> | 2015-09-21 09:47:20 +0200 |
---|---|---|
committer | Geekologist <Conver@users.noreply.github.com> | 2015-09-21 09:47:20 +0200 |
commit | a7de076fe6c178bd4c11766a46a073d3c00cbe03 (patch) | |
tree | 77004ae9288b9e373efe286708dfd12fcd3a2ef0 | |
parent | b1cff9e0203c0b74ee1019e0e7f55cc55da07a01 (diff) | |
parent | 9c8da706f421f84beef1cab2eefbc9c85b6abcd7 (diff) | |
download | PHPAuth-a7de076fe6c178bd4c11766a46a073d3c00cbe03.zip PHPAuth-a7de076fe6c178bd4c11766a46a073d3c00cbe03.tar.gz PHPAuth-a7de076fe6c178bd4c11766a46a073d3c00cbe03.tar.bz2 |
Merge pull request #116 from ChristinMilloy/master
feature: config override method
-rwxr-xr-x | config.class.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config.class.php b/config.class.php index 139f7e4..ca3a52f 100755 --- a/config.class.php +++ b/config.class.php @@ -65,6 +65,20 @@ class Config } /** + * Config::override() + * + * @param mixed $setting + * @param mixed $value + * @return bool + */ + public function override($setting, $value){ + + $this->config[$setting] = $value; + return true; + + } + + /** * Danger foreseen is half avoided. * * Set default values. |