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.
부터: 2.0
저자: Qiang Xue ([email protected])
상속: extends yii\caching\Dependency
파일 보기 프로젝트 열기: yiisoft/yii2

공개 프로퍼티들

프로퍼티 타입 설명
$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 )

보호된 메소드들

메소드 설명
generateDependencyData ( Cache $cache ) : mixed Generates the data needed to determine if dependency has been changed.

메소드 상세

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() 공개 메소드

public isChanged ( $cache )

프로퍼티 상세

$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.
public $dependOnAll

$dependencies 공개적으로 프로퍼티

list of dependencies that this dependency is composed of. Each array element must be a dependency object.
public $dependencies