Property | Type | Description | |
---|---|---|---|
$events | array | Array of the occurred events. | |
$input | string | For example, an inotifywatch record should have an input similar to "DELETE /var/www/media/song.mp3". | |
$path | string | Full path of the file/directory on which the event occurred. |
Method | Description | |
---|---|---|
__construct ( $input ) | WatchRecord constructor. | |
__toString ( ) | ||
getPath ( ) : string | ||
isDirectory ( ) : boolean | Determine if the object is a directory. | |
isFile ( ) : boolean | Determine if the object is a file. |
Method | Description | |
---|---|---|
eventExists ( $event ) : boolean | Check if a given event name exists in the event array. |
public __construct ( $input ) | ||
$input | string The output from a watcher command (which is an input for our script) |
protected eventExists ( $event ) : boolean | ||
$event | string | |
return | boolean |
public isDirectory ( ) : boolean | ||
return | boolean |
protected string $input | ||
return | string |
protected string $path | ||
return | string |