[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/cache/ -> sfSQLiteCache.class.php (sommaire)

(pas de description)

Poids: 317 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfSQLiteCache:: (12 méthodes):
  __construct()
  initialize()
  setDatabase()
  createSchema()
  __destruct()
  getDatabase()
  get()
  has()
  set()
  remove()
  clean()
  lastModified()


Classe: sfSQLiteCache  - X-Ref

Cache class that stores content in a sqlite database.

__construct($database = null)   X-Ref
Constructor.

param: string The database name

initialize($options = array()   X-Ref
Initializes the cache.

param: array An array of options

setDatabase($database)   X-Ref
Sets the database name.

param: string The database name where to store the cache

createSchema()   X-Ref
Creates the database schema.


__destruct()   X-Ref
Destructor.


getDatabase()   X-Ref
Gets the database name.

return: string The database name

get($id, $namespace = self::DEFAULT_NAMESPACE, $doNotTestCacheValidity = false)   X-Ref
Tests if a cache is available and (if yes) returns it.

param: string  The cache id
param: string  The name of the cache namespace
param: boolean If set to true, the cache validity won't be tested
return: string  The data in the cache (or null if no cache available)

has($id, $namespace = self::DEFAULT_NAMESPACE, $doNotTestCacheValidity = false)   X-Ref
Returns true if there is a cache for the given id and namespace.

param: string  The cache id
param: string  The name of the cache namespace
param: boolean If set to true, the cache validity won't be tested
return: boolean true if the cache exists, false otherwise

set($id, $namespace = self::DEFAULT_NAMESPACE, $data)   X-Ref
Saves some data in the cache.

param: string The cache id
param: string The name of the cache namespace
param: string The data to put in cache
return: boolean true if no problem

remove($id, $namespace = self::DEFAULT_NAMESPACE)   X-Ref
Removes an element from the cache.

param: string The cache id
param: string The name of the cache namespace
return: boolean true if no problem

clean($namespace = null, $mode = 'all')   X-Ref
Cleans the cache.

If no namespace is specified all cache files will be destroyed
else only cache files of the specified namespace will be destroyed.

param: string The name of the cache namespace
return: boolean true if no problem

lastModified($id, $namespace = self::DEFAULT_NAMESPACE)   X-Ref
Pas de description



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7