Xima\XmTools\Classes\Typo3\Cache\CacheManager¶
-
class
CacheManager
¶ Stores and retrieves data in a file.
-
property
path
¶ protected
-
__construct
()¶
-
get
($fileName)¶ Returns file contents. If file is younger than one day returns its value, otherwise false.
Parameters: - $fileName –
Returns: string|bool
-
write
($fileName, $content)¶ Parameters: - $fileName –
- $content –
-
setPath
($path)¶ Parameters: - $path –
-
clearCache
()¶
-
getFilePath
($fileName)¶ Creates file name by replacing special chars.
Parameters: - $fileName –
Returns: string
-
sanitizeFileName
($fileName)¶ Parameters: - $fileName –
-
getPath
()¶
-
isFileValid
($filePath)¶ Parameters: - $filePath –
-
getAbsoluteFilePath
($fileName)¶ Parameters: - $fileName –
-
getAbsolutePath
()¶
-
property