cache super class
More...
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
- Copyright:
- Otto srl MIT License
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.
Member Function Documentation
Gets the cached filename.
- Returns:
- the filename
Definition at line 112 of file cache.php.
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.
Reads data from file.
- Returns:
- data in string format
Definition at line 101 of file cache.php.
Writes data to file.
- Parameters:
-
- Returns:
- void
Definition at line 84 of file cache.php.
Field Documentation
directory separator
Definition at line 33 of file cache.php.
absolute path to the cache folder storing all the cache files
Definition at line 38 of file cache.php.
cache content group
Definition at line 48 of file cache.php.
cache files prefix
Definition at line 43 of file cache.php.
cache content identifier
Definition at line 53 of file cache.php.
The documentation for this class was generated from the following file: