CacheHelper Class Reference

Inheritance diagram for CacheHelper:

AppHelper Helper Helper Overloadable Overloadable Object Object Object Object List of all members.

Public Member Functions

 __parseFile ($file, $cache)
 __parseOutput ($cache)
 __writeFile ($content, $timestamp, $useCallbacks=false)
 cache ($file, $out, $cache=false)

Public Attributes

 $__match = array()
 $__replace = array()
 $cacheAction
 $view

Detailed Description

Definition at line 35 of file cache.php.


Member Function Documentation

CacheHelper::__parseFile ( file,
cache 
)

Parse file searching for no cache tags

Parameters:
string $file
boolean $cache private

Definition at line 154 of file cache.php.

References fileExistsInPath().

Referenced by cache().

CacheHelper::__parseOutput ( cache  ) 

Parse the output and replace cache tags

Parameters:
sting $cache
Returns:
string with all replacements made to <cake:nocache><cake:nocache> private

Definition at line 191 of file cache.php.

Referenced by cache().

CacheHelper::__writeFile ( content,
timestamp,
useCallbacks = false 
)

Write a cached version of the file

Parameters:
string $file
sting $timestamp
Returns:
cached view private

Definition at line 225 of file cache.php.

References $path, cache(), App::import(), params(), Router::setRequestInfo(), slug(), variable(), and Helper::webroot().

Referenced by cache().

CacheHelper::cache ( file,
out,
cache = false 
)

Main method used to cache a view

Parameters:
string $file File to cache
string $out output to cache
boolean $cache
Returns:
view ouput

Definition at line 74 of file cache.php.

References $out, __parseFile(), __parseOutput(), __writeFile(), slug(), and underscore().

Referenced by __writeFile().


Member Data Documentation

CacheHelper::$__match = array()

Definition at line 51 of file cache.php.

CacheHelper::$__replace = array()

Definition at line 43 of file cache.php.

CacheHelper::$cacheAction

Definition at line 65 of file cache.php.

CacheHelper::$view

Definition at line 58 of file cache.php.


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 00:30:55 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7