\Xima\XmTools\Classes\Typo3\CacheApiCacheManager

Stores and retrieves api data in a file, file name is created using md5.

Summary

Methods
Properties
Constants
setPath()
__construct()
get()
write()
getFilePath()
clear()
No public properties found
BASE_PATH
I10N_DIR_NAME
EXTENSION_DIR_NAME
API_DIR_NAME
clearCache()
sanitizeFileName()
getPath()
$path
N/A
isFileValid()
getAbsoluteFilePath()
getAbsolutePath()
No private properties found
N/A

Constants

BASE_PATH

BASE_PATH

I10N_DIR_NAME

I10N_DIR_NAME

EXTENSION_DIR_NAME

EXTENSION_DIR_NAME

API_DIR_NAME

API_DIR_NAME

Properties

$path

$path : 

Type

Methods

setPath()

setPath(  $path) 

Parameters

$path

__construct()

__construct() 

get()

get(  $fileName) : string|boolean

Returns file contents. If file is younger than one day returns its value, otherwise false.

Parameters

$fileName

Returns

string|boolean

write()

write(  $fileName,   $content) 

Parameters

$fileName
$content

getFilePath()

getFilePath(  $fileName) : string

Creates file name by replacing special chars.

Parameters

$fileName

Returns

string

clear()

clear() 

clearCache()

clearCache() 

sanitizeFileName()

sanitizeFileName(  $fileName) 

Parameters

$fileName

getPath()

getPath() 

isFileValid()

isFileValid(  $filePath) 

Parameters

$filePath

getAbsoluteFilePath()

getAbsoluteFilePath(  $fileName) 

Parameters

$fileName

getAbsolutePath()

getAbsolutePath()