PHP Class yii\caching\ChainedDependency
When [[dependOnAll]] is true, if any of the dependencies has changed, this dependency is
considered changed; When [[dependOnAll]] is false, if one of the dependencies has NOT changed,
this dependency is considered NOT changed.
For more details and usage information on Cache, see the
guide article on caching.
Mostrar archivo
Open project: yiisoft/yii2
Public Properties
Property |
Type |
Description |
|
$dependOnAll |
|
whether this dependency is depending on every dependency in [[dependencies]].
Defaults to true, meaning if any of the dependencies has changed, this dependency is considered changed.
When it is set false, it means if one of the dependencies has NOT changed, this dependency
is considered NOT changed. |
|
$dependencies |
|
list of dependencies that this dependency is composed of.
Each array element must be a dependency object. |
|
Public Methods
Method |
Description |
|
evaluateDependency ( Cache $cache ) |
Evaluates the dependency by generating and saving the data related with dependency. |
|
isChanged ( $cache ) |
|
|
Protected Methods
Method |
Description |
|
generateDependencyData ( Cache $cache ) : mixed |
Generates the data needed to determine if dependency has been changed. |
|
Method Details
evaluateDependency()
public method
Evaluates the dependency by generating and saving the data related with dependency.
public evaluateDependency ( Cache $cache ) |
$cache |
Cache |
the cache component that is currently evaluating this dependency |
generateDependencyData()
protected method
This method does nothing in this class.
protected generateDependencyData ( Cache $cache ) : mixed |
$cache |
Cache |
the cache component that is currently evaluating this dependency |
return |
mixed |
the data needed to determine if dependency has been changed. |
isChanged()
public method
Property Details
$dependOnAll public_oe property
whether this dependency is depending on every dependency in [[dependencies]].
Defaults to true, meaning if any of the dependencies has changed, this dependency is considered changed.
When it is set false, it means if one of the dependencies has NOT changed, this dependency
is considered NOT changed.
$dependencies public_oe property
list of dependencies that this dependency is composed of.
Each array element must be a dependency object.