Class CExpressionDependency
CExpressionDependency represents a dependency based on the result of a PHP expression.
CExpressionDependency performs dependency checking based on the result of a
PHP CExpressionDependency::$expression
. The dependency is reported as unchanged if and only if
the result is the same as the one evaluated when storing the data to cache.
- CComponent
- CCacheDependency implements ICacheDependency
- CExpressionDependency
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/caching/dependencies/CExpressionDependency.php
public
|
|
protected
mixed
|
#
generateDependentData( )
Generates the data needed to determine if dependency has been changed. This method returns the result of the PHP expression. |
evaluateDependency(),
getDependentData(),
getHasChanged(),
resetReusableData()
|
public
string
|
$expression |
|
#
the PHP expression whose result is used to determine the dependency. The expression can also be a valid serializable PHP callback. It will be passed with a parameter which is the dependency object itself. The PHP expression will be evaluated using A PHP expression can be any PHP code that has a value. To learn more about what an expression is, please refer to the php manual. |
$reuseDependentData
|
$dependentData,
$hasChanged
|