Class TCacheDependency

Description

Implements interfaces:

TCacheDependency class.

TCacheDependency is the base class implementing ICacheDependency interface. Descendant classes must implement getHasChanged() to provide actual dependency checking logic.

The property value of getHasChanged tells whether the dependency is changed or not.

You may disable the dependency checking by setting setEnabled to false.

Note, since the dependency objects often need to be serialized so that they can persist across requests, you may need to implement __sleep() and __wakeup() if the dependency objects contain resource handles which are not serializable.

Currently, the following dependency classes are provided in the PRADO release:

  • abstract:
  • since: 3.1.0
  • version: $Id: TCache.php 2362 2008-01-10 04:59:06Z xue $
  • author: Qiang Xue <qiang.xue@gmail.com>

Located in /Caching/TCache.php (line 313)

TComponent
   |
   --TCacheDependency
Direct descendents
Class Description
TFileCacheDependency TFileCacheDependency class.
TDirectoryCacheDependency TDirectoryCacheDependency class.
TGlobalStateCacheDependency TGlobalStateCacheDependency class.
TChainedCacheDependency TChainedCacheDependency class.
TApplicationStateCacheDependency TApplicationStateCacheDependency class.
Methods

Documentation generated on Mon, 21 Apr 2008 11:32:03 -0400 by phpDocumentor 1.3.0RC4