PHP 클래스 Bolt\Storage\Database\Schema\Timer

저자: Gawain Lynch ([email protected])
파일 보기 프로젝트 열기: bolt/bolt

보호된 프로퍼티들

프로퍼티 타입 설명
$cacheFile Bolt\Filesystem\Handler\FileInterface
$expired boolean

공개 메소드들

메소드 설명
__construct ( Bolt\Filesystem\Handler\FileInterface $cacheFile ) Constructor.
isCheckRequired ( ) : boolean Check if we have determined that we need to do a database check.
setCheckExpiry ( ) Set our state as valid by writing the current date/time to the app/cache/dbcheck.ts file.
setCheckRequired ( ) Invalidate our database check by removing the timestamp file from cache.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Bolt\Filesystem\Handler\FileInterface $cacheFile )
$cacheFile Bolt\Filesystem\Handler\FileInterface

isCheckRequired() 공개 메소드

Check if we have determined that we need to do a database check.
public isCheckRequired ( ) : boolean
리턴 boolean

setCheckExpiry() 공개 메소드

We only want to do these checks once per hour, per session, since it's pretty time consuming… Unless specifically requested.
public setCheckExpiry ( )

setCheckRequired() 공개 메소드

Invalidate our database check by removing the timestamp file from cache.
public setCheckRequired ( )

프로퍼티 상세

$cacheFile 보호되어 있는 프로퍼티

protected FileInterface,Bolt\Filesystem\Handler $cacheFile
리턴 Bolt\Filesystem\Handler\FileInterface

$expired 보호되어 있는 프로퍼티

protected bool $expired
리턴 boolean