Mercurial > SimpleWebPresenter
comparison FileCacheSet.inc @ 103:23a59da90fc7
Make static function static.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 07 Mar 2016 17:06:42 +0100 |
| parents | d98e315308cd |
| children | adf7b11921f4 |
comparison
equal
deleted
inserted
replaced
| 102:41c128ba0c2c | 103:23a59da90fc7 |
|---|---|
| 127 * | 127 * |
| 128 * @param $filename an optional file to include in the cacheset | 128 * @param $filename an optional file to include in the cacheset |
| 129 * | 129 * |
| 130 * @return a CacheTimeCheck object | 130 * @return a CacheTimeCheck object |
| 131 */ | 131 */ |
| 132 function instance($filename = False) | 132 public static function instance($filename = False) |
| 133 { | 133 { |
| 134 if (! self::$myInstance) | 134 if (! self::$myInstance) |
| 135 self::$myInstance = new self($filename); | 135 self::$myInstance = new self($filename); |
| 136 elseif ($filename) | 136 elseif ($filename) |
| 137 self::$myInstance->cache_time($filename); | 137 self::$myInstance->cache_time($filename); |
