PHP 클래스 App\Console\Commands\SyncMedia

상속: extends Illuminate\Console\Command
파일 보기 프로젝트 열기: phanan/koel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$bar Symfony\Component\Console\Helper\ProgressBar The progress bar.
$description string The console command description.
$ignored
$invalid
$signature string The name and signature of the console command.
$synced

공개 메소드들

메소드 설명
createProgressBar ( integer $max ) Create a progress bar.
handle ( ) : mixed Execute the console command.
logToConsole ( string $path, mixed $result, string $reason = '' ) Log a song's sync status to console.
syngle ( string $record ) SYNc a sinGLE file or directory. See my awesome pun?
updateProgressBar ( ) Update the progress bar (advance by 1 step).

보호된 메소드들

메소드 설명
syncAll ( ) Sync all files in the configured media path.

메소드 상세

createProgressBar() 공개 메소드

Create a progress bar.
public createProgressBar ( integer $max )
$max integer Max steps

handle() 공개 메소드

Execute the console command.
public handle ( ) : mixed
리턴 mixed

logToConsole() 공개 메소드

Log a song's sync status to console.
public logToConsole ( string $path, mixed $result, string $reason = '' )
$path string
$result mixed
$reason string

syncAll() 보호된 메소드

Sync all files in the configured media path.
protected syncAll ( )

syngle() 공개 메소드

SYNc a sinGLE file or directory. See my awesome pun?
public syngle ( string $record )
$record string The watch record. As of current we only support inotifywait. Some examples: - "DELETE /var/www/media/gone.mp3" - "CLOSE_WRITE,CLOSE /var/www/media/new.mp3" - "MOVED_TO /var/www/media/new_dir"

updateProgressBar() 공개 메소드

Update the progress bar (advance by 1 step).
public updateProgressBar ( )

프로퍼티 상세

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

The progress bar.
protected ProgressBar,Symfony\Component\Console\Helper $bar
리턴 Symfony\Component\Console\Helper\ProgressBar

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

The console command description.
protected string $description
리턴 string

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

protected $ignored

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

protected $invalid

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

The name and signature of the console command.
protected string $signature
리턴 string

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

protected $synced