PHP Класс App\Console\Commands\SyncMedia

Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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