| 1 | <?php |
||
| 11 | trait FileCacheTrait |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string $name |
||
| 16 | * @return mixed |
||
| 17 | */ |
||
| 18 | protected function includeFile($name) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $name |
||
| 29 | * @param string $content |
||
| 30 | */ |
||
| 31 | 2 | protected function dumpCacheFile($name, $content) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $name |
||
| 41 | * @param mixed $variable |
||
| 42 | */ |
||
| 43 | 2 | protected function dumpVariableToCache($name, $variable) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * @param string $name |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 2 | private function getCacheFileName($name) |
|
| 56 | } |
||
| 57 |
If you suppress an error, we recommend checking for the error condition explicitly: