EQdkp Plus Navigation:   Home  |   Forum  |   Wiki  |   Translate  |   Bugtracker  |   WebSVN  |  USVN

CacheHandler

From EQdkp Plus Wiki

Artikel Veraltet.png The information in this article refers to an older version of EQdkp Plus / of the plugin. It is not used any longer. See the information Box for further information.


Information
min. EQDKP-PLUS Version 0.6.2.0 or higher
max. EQDKP-PLUS Version 0.7.0.0


Contents

File Storage & Cache Handler

What is the cache Handler?

The cache handler is managing all file inputs and outputs. The files are stored in the /data/ folder.


How to use the cache?

Its pretty simple: All you need is an eqdkp-plus >= 0.6.2.x. Then use the parameters shown above If the cacheHandler is used in a plugin, please enter the plugin name. because of that, the user can remove the folder with the pluginname later if he wants to delete the stored files


Parameters

Check if the data folder is writable or not Output: true/false

$pcache->CacheWritable()

Returns the path to the requested file. The path is from rqdkp-root. Usage: check if file is available, output link..... Output: path to file

$pcache->FilePath('Dateiname', 'Pluginname')

Returns the URL to the requested file. Output: url to file

$pcache->FileLink('Dateiname', 'Pluginname')

Returns the path to the requested folder Output: path to folder

$pcache->FolderPath('Ordnername', 'Pluginname')

Kategorie:Libraries