PHP Класс 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.
Показать файл
Открыть проект
Открытые свойства
Свойство |
Тип |
Описание |
|
$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. |
|
Открытые методы
Метод |
Описание |
|
evaluateDependency ( Cache $cache ) |
Evaluates the dependency by generating and saving the data related with dependency. |
|
isChanged ( $cache ) |
|
|
Защищенные методы
Описание методов
evaluateDependency()
публичный Метод
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()
защищенный Метод
This method does nothing in this class.
protected generateDependencyData ( Cache $cache ) : mixed |
$cache |
Cache |
the cache component that is currently evaluating this dependency |
Результат |
mixed |
the data needed to determine if dependency has been changed. |
isChanged()
публичный Метод
Описание свойств
$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.