Class Cache
A class to handle manipulation of cache files (or any file, really).
Located in /class.cache.php (line 23)
Simply returns whether or not the supplied file path exists. There is no difference between calling this method and calling file_exists().
- string $sCacheFileName: The absolute path to the cache file we're checking the existence of
The constructor for the cache class. Loads the supplied cache file, if one was specified.
- string $sCacheFileName: The absolute path to the cache file to load
This method actually does not close anything as we do not keep an active connection to the file. Instead, this method simply clears all file variables and stored contents.
Returns the created time for the current cache file.
Returns the last created time for the current cache file.
Attempts to open a cache file. If the file does not exist, a FileNotFoundException is thrown. If the file does exist, it's contents are loaded, as well as the created and modified time for the file. This method returns the contents of the cache file.
- string $sCacheFileName: The name of the cache file to load
Attempts to save a cache file with the specified contents. If the directory part of the supplied file name does not exist, a FileNotFoundException is thrown. If this method fails to write to the supplied file, an Exception is thrown.
On a sucessful save, this method loads information about the cache file and stores the cache contents.
- string $sCacheFileName: The name of the file to save the cache contents to
- string $sCacheContents: The content to be cached in the supplied file
The __toString() method returns the contents of the cache file
Documentation generated on Thu, 25 Feb 2010 15:59:39 -0500 by phpDocumentor 1.4.3

