@@ -11,9 +11,7 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | 13 | use OSC\OM\Cache; |
| 14 | - use OSC\OM\FileSystem; |
|
| 15 | 14 | use OSC\OM\HTTP; |
| 16 | - use OSC\OM\OSCOM; |
|
| 17 | 15 | use OSC\OM\Registry; |
| 18 | 16 | |
| 19 | 17 | class d_partner_news { |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use OSC\OM\HTML; |
| 14 | 14 | use OSC\OM\OSCOM; |
| 15 | - use OSC\OM\Registry; |
|
| 16 | 15 | |
| 17 | 16 | require('includes/application_top.php'); |
| 18 | 17 | |
@@ -50,6 +50,9 @@ discard block |
||
| 50 | 50 | return false; |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | + /** |
|
| 54 | + * @param integer $expire |
|
| 55 | + */ |
|
| 53 | 56 | public function exists($expire = null) |
| 54 | 57 | { |
| 55 | 58 | $filename = static::$path . $this->key . '.cache'; |
@@ -139,6 +142,9 @@ discard block |
||
| 139 | 142 | return static::$path; |
| 140 | 143 | } |
| 141 | 144 | |
| 145 | + /** |
|
| 146 | + * @param string $key |
|
| 147 | + */ |
|
| 142 | 148 | public static function clear($key) |
| 143 | 149 | { |
| 144 | 150 | if (!static::hasSafeName($key)) { |
@@ -9,10 +9,8 @@ |
||
| 9 | 9 | namespace OSC\OM; |
| 10 | 10 | |
| 11 | 11 | use OSC\OM\Cache; |
| 12 | -use OSC\OM\Db; |
|
| 13 | 12 | use OSC\OM\HTML; |
| 14 | 13 | use OSC\OM\OSCOM; |
| 15 | -use OSC\OM\Registry; |
|
| 16 | 14 | |
| 17 | 15 | class DbStatement extends \PDOStatement |
| 18 | 16 | { |