PHP Класс Plank\Mediable\Commands\ImportMediaCommand

Автор: Sean Fraser ([email protected])
Наследование: extends Illuminate\Console\Command
Показать файл Открыть проект

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

Свойство Тип Описание
$counters array Various counters of files being modified.
$description string
$filesystem Illuminate\Filesystem\FilesystemManager Filesystem Manager instance.
$signature string
$uploader Plank\Mediable\MediaUploader Uploader instance.

Открытые методы

Метод Описание
__construct ( FileSystemManager $filesystem, MediaUploader $uploader ) Constructor.
handle ( ) : void Execute the console command.

Защищенные методы

Метод Описание
createRecordForFile ( string $disk, string $path ) : void Generate a new media record.
getRecordForFile ( string $path, Illuminate\Database\Eloquent\Collection $existing_media ) : Media | null Search through the record list for one matching the provided path.
listFiles ( atring $disk, string $directory = '', boolean $recursive = true ) : array Generate a list of all files in the specified directory.
outputCounters ( boolean $force ) : void Send the counter total to the console.
resetCounters ( ) : void Reset the counters of processed files.
updateRecordForFile ( Media $media, string $path ) : void Update an existing media record.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( FileSystemManager $filesystem, MediaUploader $uploader )
$filesystem FileSystemManager
$uploader Plank\Mediable\MediaUploader

createRecordForFile() защищенный Метод

Generate a new media record.
protected createRecordForFile ( string $disk, string $path ) : void
$disk string
$path string
Результат void

getRecordForFile() защищенный Метод

Search through the record list for one matching the provided path.
protected getRecordForFile ( string $path, Illuminate\Database\Eloquent\Collection $existing_media ) : Media | null
$path string
$existing_media Illuminate\Database\Eloquent\Collection
Результат Plank\Mediable\Media | null

handle() публичный Метод

Execute the console command.
public handle ( ) : void
Результат void

listFiles() защищенный Метод

Generate a list of all files in the specified directory.
protected listFiles ( atring $disk, string $directory = '', boolean $recursive = true ) : array
$disk atring
$directory string
$recursive boolean
Результат array

outputCounters() защищенный Метод

Send the counter total to the console.
protected outputCounters ( boolean $force ) : void
$force boolean
Результат void

resetCounters() защищенный Метод

Reset the counters of processed files.
protected resetCounters ( ) : void
Результат void

updateRecordForFile() защищенный Метод

Update an existing media record.
protected updateRecordForFile ( Media $media, string $path ) : void
$media Plank\Mediable\Media
$path string
Результат void

Описание свойств

$counters защищенное свойство

Various counters of files being modified.
protected array $counters
Результат array

$description защищенное свойство

protected string $description
Результат string

$filesystem защищенное свойство

Filesystem Manager instance.
protected FilesystemManager,Illuminate\Filesystem $filesystem
Результат Illuminate\Filesystem\FilesystemManager

$signature защищенное свойство

protected string $signature
Результат string

$uploader защищенное свойство

Uploader instance.
protected MediaUploader,Plank\Mediable $uploader
Результат Plank\Mediable\MediaUploader