Property | Type | Description | |
---|---|---|---|
$descriptors | of inotify descriptors | ||
$files | Associative array of the files being observed | ||
$inotify | Resource returned by inotify_init() |
Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
addWatch ( string $path, mixed $cb, integer $flags = null ) : true | Adds your subscription on object in FS | |
onFileChanged ( string $path ) : void | Called when file $path is changed | |
rmWatch ( string $path, mixed $cb ) : boolean | Cancels your subscription on object in FS | |
watch ( ) : void | Check the file system, triggered by timer |
public onFileChanged ( string $path ) : void | ||
$path | string | Path |
return | void |