Simple Web Presenter
An extremely basic CMS
 All Classes Files Functions Variables Pages
Public Member Functions | Protected Member Functions | List of all members
FileCacheSet Class Reference
Inheritance diagram for FileCacheSet:
Cache CacheTimeCheck ScriptIncludeCache

Public Member Functions

 cacheSet ($humanReadable=False)
 
 cache_time ($path)
 
 getNewest ()
 
- Public Member Functions inherited from Cache
 setMaxAge ($seconds)
 
 cacheControl ()
 

Protected Member Functions

 __construct ($parent=null)
 
 addParent ($parent)
 

Detailed Description

Caches a set of file with timestamps

Constructor & Destructor Documentation

FileCacheSet::__construct (   $parent = null)
protected

Constructs a FileCacheSet object

Parameters
$parentoptional linked parent cache to sync with

Member Function Documentation

FileCacheSet::addParent (   $parent)
protected

Links up a parent cache

Parameters
$parentcache we should sync with
FileCacheSet::cache_time (   $path)

Include a file in the cacheset

Parameters
$paththe path of the file
FileCacheSet::cacheSet (   $humanReadable = False)

List a set of files which contributes to this pages cacheset.

Parameters
$humanReadableIf the timestamp should be human readable.
Returns
an associative array of file, and timestamp
FileCacheSet::getNewest ( )

Find the newest member of the combined cacheset

Returns
timestamp of newest member

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