PHP Класс Plank\Mediable\MediaMover

Автор: Sean Fraser ([email protected])
Показать файл Открыть проект

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

Свойство Тип Описание
$filesystem Illuminate\Filesystem\FilesystemManager

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

Метод Описание
__construct ( Illuminate\Filesystem\FilesystemManager $filesystem ) Constructor.
move ( Media $media, string $directory, $filename = null ) : void Move the file to a new location on disk.

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

Метод Описание
removeExtensionFromFilename ( string $filename, string $extension ) : string Remove the media's extension from a filename.

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

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

Constructor.
public __construct ( Illuminate\Filesystem\FilesystemManager $filesystem )
$filesystem Illuminate\Filesystem\FilesystemManager

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

Will invoke the save() method on the model after the associated file has been moved to prevent synchronization errors
public move ( Media $media, string $directory, $filename = null ) : void
$media Media
$directory string directory relative to disk root
Результат void

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

Remove the media's extension from a filename.
protected removeExtensionFromFilename ( string $filename, string $extension ) : string
$filename string
$extension string
Результат string

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

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

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