Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.

cache super class More...

+ Inheritance diagram for cache:

Public Member Functions

 __construct ()
 Construct a cache instance.

Protected Member Functions

 getFilename ()
 Gets the cached filename.
 isCached ()
 Cheks if data are cached and not expired.
 read ()
 Reads data from file.
 write ($data)
 Writes data to file.

Protected Attributes

 $_ds
 directory separator
 $_enabled
 status
 $_fld
 absolute path to the cache folder storing all the cache files
 $_grp
 cache content group
 $_prefix
 cache files prefix
 $_tc
 caching time
 $id
 cache content identifier

Detailed Description

cache super class

Provides methods to handle file operations.

Author:
abidibo abidi.nosp@m.bo@g.nosp@m.mail..nosp@m.com
Version:
0.99
Date:
2011-2012

Definition at line 28 of file cache.php.


Constructor & Destructor Documentation

Construct a cache instance.

Returns:
cache instance

Definition at line 70 of file cache.php.

+ Here is the caller graph for this function:


Member Function Documentation

cache::getFilename ( ) [protected]

Gets the cached filename.

Returns:
the filename

Definition at line 112 of file cache.php.

+ Here is the caller graph for this function:

cache::isCached ( ) [protected]

Cheks if data are cached and not expired.

Returns:
true if data are cached and the cache time is not expired, false otherwise

Definition at line 123 of file cache.php.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

cache::read ( ) [protected]

Reads data from file.

Returns:
data in string format

Definition at line 101 of file cache.php.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

cache::write ( data) [protected]

Writes data to file.

Parameters:
string$data
Returns:
void

Definition at line 84 of file cache.php.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


Field Documentation

cache::$_ds [protected]

directory separator

Definition at line 33 of file cache.php.

cache::$_enabled [protected]

status

Definition at line 63 of file cache.php.

cache::$_fld [protected]

absolute path to the cache folder storing all the cache files

Definition at line 38 of file cache.php.

cache::$_grp [protected]

cache content group

Definition at line 48 of file cache.php.

cache::$_prefix [protected]

cache files prefix

Definition at line 43 of file cache.php.

cache::$_tc [protected]

caching time

Definition at line 58 of file cache.php.

cache::$id [protected]

cache content identifier

Definition at line 53 of file cache.php.


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