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

Public Member Functions

 instance ($filename=False)
 
 includeOnce ($path, $basedir=false)
 
- Public Member Functions inherited from FileCacheSet
 cacheSet ($humanReadable=False)
 
 cache_time ($path)
 
 getNewest ()
 
- Public Member Functions inherited from Cache
 setMaxAge ($seconds)
 
 cacheControl ()
 

Protected Member Functions

 __construct ($filename=False)
 
- Protected Member Functions inherited from FileCacheSet
 __construct ($parent=null)
 
 addParent ($parent)
 

Detailed Description

Singleton class, keeps track of all scriptfile includes

This class is typically used as a parent class of another cache

Member Function Documentation

ScriptIncludeCache::includeOnce (   $path,
  $basedir = false 
)

Convenience function to include a file, and add it to the cacheset.

Parameters
$pathpath of the file
$basedira directory to prepend to the path
ScriptIncludeCache::instance (   $filename = False)

Generates a singleton instance of this CacheTimeCheck

Parameters
$filenamean optional file to include in the cacheset
Returns
a CacheTimeCheck object

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