Skip to content

Commit

Permalink
Cache_Lite: Use __construct (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
onli committed May 10, 2016
1 parent 78de4c8 commit dbf21c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bundled-libs/Cache/Lite.php
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions bundled-libs/Cache/Lite/File.php
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions bundled-libs/Cache/Lite/Function.php
Expand Up @@ -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)) {
Expand All @@ -91,7 +91,7 @@ function Cache_Lite_Function($options = array(NULL))
}
}
reset($options);
$this->Cache_Lite($options);
parent::__construct($options);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions bundled-libs/Cache/Lite/Output.php
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit dbf21c3

Please sign in to comment.