PHP 클래스 App\Libraries\WatchRecord\WatchRecord

파일 보기 프로젝트 열기: phanan/koel

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
eventExists ( $event ) : boolean Check if a given event name exists in the event array.

메소드 상세

__construct() 공개 메소드

WatchRecord constructor.
public __construct ( $input )
$input string The output from a watcher command (which is an input for our script)

__toString() 공개 메소드

public __toString ( )

eventExists() 보호된 메소드

Check if a given event name exists in the event array.
protected eventExists ( $event ) : boolean
$event string
리턴 boolean

getPath() 공개 메소드

public getPath ( ) : string
리턴 string

isDirectory() 공개 메소드

Determine if the object is a directory.
public isDirectory ( ) : boolean
리턴 boolean

isFile() 공개 메소드

Determine if the object is a file.
public isFile ( ) : boolean
리턴 boolean

프로퍼티 상세

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

Array of the occurred events.
protected array $events
리턴 array

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

For example, an inotifywatch record should have an input similar to "DELETE /var/www/media/song.mp3".
protected string $input
리턴 string

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

Full path of the file/directory on which the event occurred.
protected string $path
리턴 string