PHP Класс Spatie\MediaLibrary\Helpers\File

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
getHumanReadableSize ( integer $sizeInBytes ) : string
getMimetype ( string $path ) : string * Get the mime type of a file.
renameInDirectory ( string $fileNameWithDirectory, string $newFileNameWithoutDirectory ) : string * Rename a file.

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

getHumanReadableSize() публичный статический Метод

public static getHumanReadableSize ( integer $sizeInBytes ) : string
$sizeInBytes integer
Результат string

getMimetype() публичный статический Метод

* Get the mime type of a file.
public static getMimetype ( string $path ) : string
$path string
Результат string

renameInDirectory() публичный статический Метод

* Rename a file.
public static renameInDirectory ( string $fileNameWithDirectory, string $newFileNameWithoutDirectory ) : string
$fileNameWithDirectory string
$newFileNameWithoutDirectory string
Результат string