PHP Class Spatie\MediaLibrary\Helpers\File

Afficher le fichier Open project: spatie/laravel-medialibrary Class Usage Examples

Méthodes publiques

Méthode Description
getHumanReadableSize ( integer $sizeInBytes ) : string
getMimetype ( string $path ) : string * Get the mime type of a file.
renameInDirectory ( string $fileNameWithDirectory, string $newFileNameWithoutDirectory ) : string * Rename a file.

Method Details

getHumanReadableSize() public static méthode

public static getHumanReadableSize ( integer $sizeInBytes ) : string
$sizeInBytes integer
Résultat string

getMimetype() public static méthode

* Get the mime type of a file.
public static getMimetype ( string $path ) : string
$path string
Résultat string

renameInDirectory() public static méthode

* Rename a file.
public static renameInDirectory ( string $fileNameWithDirectory, string $newFileNameWithoutDirectory ) : string
$fileNameWithDirectory string
$newFileNameWithoutDirectory string
Résultat string