PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Data Fields
Cache Class Reference

Public Member Functions

 Cache ($id, $cfg=array())
 Cache::Cache() More...
 
 testTime ($lifeTime=7200, $update_timestamp_now=false)
 Teste la validité d'un fichier de cache. More...
 
 testDate ($lifeDate)
 Cache::testDate() More...
 
 get ()
 Cache::get() More...
 
 save ($data)
 Cache::save() More...
 
 echo_headers ($lifeTime=7200)
 Cache::echo_headers() More...
 
 delete_cache_file ($clean_all_group=false)
 Cache::delete_cache_file() More...
 

Data Fields

 $file
 
 $filemtime = null
 
 $cfg
 

Detailed Description

Definition at line 27 of file Cache.php.

Member Function Documentation

Cache (   $id,
  $cfg = array() 
)

Cache::Cache()

Parameters
integer$id
array$cfg

Definition at line 42 of file Cache.php.

delete_cache_file (   $clean_all_group = false)

Cache::delete_cache_file()

Returns

Definition at line 169 of file Cache.php.

echo_headers (   $lifeTime = 7200)

Cache::echo_headers()

Returns

Definition at line 151 of file Cache.php.

get ( )

Cache::get()

Returns

Definition at line 106 of file Cache.php.

save (   $data)

Cache::save()

Parameters
mixed$data
Returns

Definition at line 133 of file Cache.php.

testDate (   $lifeDate)

Cache::testDate()

Parameters
mixed$lifeDate
Returns

Definition at line 92 of file Cache.php.

testTime (   $lifeTime = 7200,
  $update_timestamp_now = false 
)

Teste la validité d'un fichier de cache.

Pour que ça renvoie toujours false, utilisez un lifeTime négatif. Si il vaut 0, le cache sera accepté si généré à la même seconde que lors de l'appel.

Parameters
integer$lifeTime
mixed$update_timestamp_now
Returns

Definition at line 66 of file Cache.php.

Field Documentation

$cfg

Definition at line 34 of file Cache.php.

$file

Definition at line 29 of file Cache.php.

$filemtime = null

Definition at line 30 of file Cache.php.


The documentation for this class was generated from the following file:

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:43 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.