diff options
author | Christian Schneider | 2010-01-08 14:17:18 +0000 |
---|---|---|
committer | Christian Schneider | 2010-01-08 14:17:18 +0000 |
commit | 940735ead52921744e1a8e531001333c8d7e26ea (patch) | |
tree | 3333bbcd5af069ca8892ef5139200cf4efb1e7ae /it_cache.class | |
parent | 202d85168ea881adb8c6b5c437f42bb9e1d424ef (diff) | |
download | itools-940735ead52921744e1a8e531001333c8d7e26ea.tar.gz itools-940735ead52921744e1a8e531001333c8d7e26ea.tar.bz2 itools-940735ead52921744e1a8e531001333c8d7e26ea.zip |
Mark static functions as static to avoid PHP 5.3 strict warnings (performance?)
Diffstat (limited to 'it_cache.class')
-rw-r--r-- | it_cache.class | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/it_cache.class b/it_cache.class index d6d3029..bcd9bd3 100644 --- a/it_cache.class +++ b/it_cache.class @@ -24,7 +24,7 @@ class it_cache { -function _defaults($p) +static function _defaults($p) { $p += array( 'ttl' => 2, @@ -43,7 +43,7 @@ function _defaults($p) * @param $key Key to get value for * @return Value for given key or null */ -function get($key, $p = array()) +static function get($key, $p = array()) { $p = it_cache::_defaults($p); @@ -64,7 +64,7 @@ function get($key, $p = array()) * @param $p['ttl'] Time to live for this key/value-pair * @return Boolean if value was put into cache */ -function put($key, $value, $p = array()) +static function put($key, $value, $p = array()) { $p = it_cache::_defaults($p); @@ -83,7 +83,7 @@ function put($key, $value, $p = array()) return $result; } -function _get_memcache($p) +static function _get_memcache($p) { $memcache_id = "it_cache_memcache_" . $p['hostsfile']; |