[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
Translation table cache.
Author: | Wei Zhuo |
Version: | $Id: sfMessageCache.class.php 2834 2006-11-27 14:09:05Z fabien $ |
Poids: | 141 lignes (4 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
sfMessageCache:: (9 méthodes):
initialize()
getLifeTime()
setLifeTime()
getID()
getGroup()
get()
save()
clean()
clear()
Classe: sfMessageCache - X-Ref
Cache the translation table into the file system.initialize($options = array() X-Ref |
Create a new Translation cache. param: string $cacheDir Directory to store the cache files. |
getLifeTime() X-Ref |
Get the cache life time. return: int Cache life time. |
setLifeTime($time) X-Ref |
Set the cache life time. param: int $time Cache life time. |
getID($catalogue, $culture) X-Ref |
Get the cache file ID based section and locale. param: string $catalogue The translation section. param: string $culture The translation locale, e.g. "en_AU". |
getGroup($catalogue, $culture) X-Ref |
Get the cache file GROUP based section and locale. param: string $catalogue The translation section. param: string $culture The translation locale, e.g. "en_AU". |
get($catalogue, $culture, $lastmodified = 0) X-Ref |
Get the data from the cache. param: string $catalogue The translation section. param: string $culture The translation locale, e.g. "en_AU". param: string $filename If the source is a file, this file's modified time is newer than the cache's modified time, no cache hit. return: mixed Boolean FALSE if no cache hit. Otherwise, translation |
save($data, $catalogue, $culture) X-Ref |
Save the data to cache for the specified section and locale. param: array $data The data to save. param: string $catalogue The translation section. param: string $culture The translation locale, e.g. "en_AU". |
clean($catalogue, $culture) X-Ref |
Clean up the cache for the specified section and locale. param: string $catalogue The translation section. param: string $culture The translation locale, e.g. "en_AU". |
clear() X-Ref |
Flush the cache. Deletes all the cache files. |
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |