PHP 클래스 Prado\Caching\TFileCacheDependency

TFileCacheDependency performs dependency checking based on the last modification time of the file specified via {@link setFileName FileName}. The dependency is reported as unchanged if and only if the file's last modification time remains unchanged.
부터: 3.1.0
저자: Qiang Xue ([email protected])
상속: extends TCacheDependency
파일 보기 프로젝트 열기: pradosoft/prado 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( $fileName ) Constructor.
getFileName ( ) : string
getHasChanged ( ) : boolean Performs the actual dependency checking.
getTimestamp ( ) : integer
setFileName ( $value )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( $fileName )

getFileName() 공개 메소드

public getFileName ( ) : string
리턴 string the name of the file whose change is to be checked

getHasChanged() 공개 메소드

This method returns true if the last modification time of the file is changed.
public getHasChanged ( ) : boolean
리턴 boolean whether the dependency is changed or not.

getTimestamp() 공개 메소드

public getTimestamp ( ) : integer
리턴 integer the last modification time of the file

setFileName() 공개 메소드

public setFileName ( $value )