From dbf21c3df500a21c76b708d61bdf86fa985d85bf Mon Sep 17 00:00:00 2001 From: onli Date: Tue, 10 May 2016 12:40:15 +0000 Subject: [PATCH] Cache_Lite: Use __construct (#399) --- bundled-libs/Cache/Lite.php | 2 +- bundled-libs/Cache/Lite/File.php | 4 ++-- bundled-libs/Cache/Lite/Function.php | 4 ++-- bundled-libs/Cache/Lite/Output.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bundled-libs/Cache/Lite.php b/bundled-libs/Cache/Lite.php index 0ca762d3..5770f3d1 100644 --- a/bundled-libs/Cache/Lite.php +++ b/bundled-libs/Cache/Lite.php @@ -294,7 +294,7 @@ class Cache_Lite * @param array $options options * @access public */ - function Cache_Lite($options = array(NULL)) + function __construct($options = array(NULL)) { foreach($options as $key => $value) { $this->setOption($key, $value); diff --git a/bundled-libs/Cache/Lite/File.php b/bundled-libs/Cache/Lite/File.php index 2cb2758b..d8ca31c1 100644 --- a/bundled-libs/Cache/Lite/File.php +++ b/bundled-libs/Cache/Lite/File.php @@ -52,10 +52,10 @@ class Cache_Lite_File extends Cache_Lite * @param array $options options * @access public */ - function Cache_Lite_File($options = array(NULL)) + function __construct($options = array(NULL)) { $options['lifetime'] = 0; - $this->Cache_Lite($options); + parent::__construct($options); if (isset($options['masterFile'])) { $this->_masterFile = $options['masterFile']; } else { diff --git a/bundled-libs/Cache/Lite/Function.php b/bundled-libs/Cache/Lite/Function.php index 6c4861a4..0814b58f 100644 --- a/bundled-libs/Cache/Lite/Function.php +++ b/bundled-libs/Cache/Lite/Function.php @@ -81,7 +81,7 @@ class Cache_Lite_Function extends Cache_Lite * @param array $options options * @access public */ - function Cache_Lite_Function($options = array(NULL)) + function __construct($options = array(NULL)) { $availableOptions = array('debugCacheLiteFunction', 'defaultGroup', 'dontCacheWhenTheOutputContainsNOCACHE', 'dontCacheWhenTheResultIsFalse', 'dontCacheWhenTheResultIsNull'); while (list($name, $value) = each($options)) { @@ -91,7 +91,7 @@ class Cache_Lite_Function extends Cache_Lite } } reset($options); - $this->Cache_Lite($options); + parent::__construct($options); } /** diff --git a/bundled-libs/Cache/Lite/Output.php b/bundled-libs/Cache/Lite/Output.php index 87d7c19d..9880cfa4 100644 --- a/bundled-libs/Cache/Lite/Output.php +++ b/bundled-libs/Cache/Lite/Output.php @@ -26,9 +26,9 @@ class Cache_Lite_Output extends Cache_Lite * @param array $options options * @access public */ - function Cache_Lite_Output($options) + function __construct($options) { - $this->Cache_Lite($options); + parent::__construct($options); } /**