PHP 클래스 Prado\Caching\TDirectoryCacheDependency
TDirectoryCacheDependency performs dependency checking based on the
modification time of the files contained in the specified directory.
The directory being checked is specified via {@link setDirectory Directory}.
By default, all files under the specified directory and subdirectories
will be checked. If the last modification time of any of them is changed
or if different number of files are contained in a directory, the dependency
is reported as changed. By specifying {@link setRecursiveCheck RecursiveCheck}
and {@link setRecursiveLevel RecursiveLevel}, one can limit the checking
to a certain depth of the subdirectories.
파일 보기
프로젝트 열기: pradosoft/prado
1 사용 예제들
공개 메소드들
보호된 메소드들
메소드 |
설명 |
|
generateTimestamps ( $directory, $level ) : array |
Determines the last modification time for files under the directory. |
|
validateDirectory ( $directory ) : boolean |
Checks to see if the specified subdirectory should be checked for dependency. |
|
validateFile ( $fileName ) : boolean |
Checks to see if the file should be checked for dependency. |
|
메소드 상세
generateTimestamps()
보호된 메소드
This method may go recursively into subdirectories if
{@link setRecursiveCheck RecursiveCheck} is set true.
This method returns true if the directory is changed.
getRecursiveCheck()
공개 메소드
getRecursiveLevel()
공개 메소드
setRecursiveCheck()
공개 메소드
setRecursiveLevel()
공개 메소드
This is meaningful only when {@link getRecursiveCheck RecursiveCheck}
is true.
validateDirectory()
보호된 메소드
This method is invoked when dependency of the whole directory is being checked.
By default, it always returns true, meaning the subdirectory should be checked.
You may override this method to check only certain subdirectories.
This method is invoked when dependency of the whole directory is being checked.
By default, it always returns true, meaning the file should be checked.
You may override this method to check only certain files.