Свойство | 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. |
Méthode | 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. |
Méthode | 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 | |
Résultat | boolean |
public isDirectory ( ) : boolean | ||
Résultat | boolean |
protected string $input | ||
Résultat | string |
protected string $path | ||
Résultat | string |