update : 2015.11.03
php.shukuma.com검색:
|
The EvStat class(PECL ev >= 0.2.0) 소개EvStat monitors a file system path for attribute changes. It calls stat() on that path in regular intervals(or when the OS signals it changed) and sees if it changed compared to the last time, invoking the callback if it did.
The path does not need to exist: changing from "path exists" to "path does
not exist" is a status change like any other. The condition "path does not
exist" is signified by the
The path must not end in a slash or contain special components such as
Since there is no portable change notification interface available, the
portable implementation simply calls
stat()
regularly on the path to see if it changed somehow. For this case a
recommended polling interval can be specified. If one specifies a polling
interval of
This watcher type is not meant for massive numbers of EvStat watchers, as even with OS-supported change notifications, this can be resource-intensive. 클래스 개요
EvStat
extends
EvWatcher
{
/* 프로퍼티 */
public
$path
;
public
$interval
;
/* 상속된 프로퍼티 */
public
$is_active
;
public
$data
;
public
$is_pending
;
public
$priority
;
/* 메소드 */
public
__construct
(
string
$path
,
double
$interval
,
callable
$callback
[,
mixed
$data
= NULL
[,
int
$priority
= 0
]] )
final
public
static
void
createStopped
(
string
$path
,
double
$interval
,
callable
$callback
[,
mixed
$data
= NULL
[,
int
$priority
= 0
]] )/* 상속된 메소드 */
}프로퍼티
Table of Contents
|