PHP Class Plank\Mediable\Helpers\File

Author: Sean Fraser ([email protected])
Afficher le fichier Open project: plank/laravel-mediable Class Usage Examples

Méthodes publiques

Méthode Description
cleanDirname ( string $path ) : string Get the directory name of path, trimming unecessary . and / characters.
readableSize ( integer $bytes, integer $precision = 1 ) : string Generate a human readable bytecount string.

Method Details

cleanDirname() public static méthode

Get the directory name of path, trimming unecessary . and / characters.
public static cleanDirname ( string $path ) : string
$path string
Résultat string

readableSize() public static méthode

Generate a human readable bytecount string.
public static readableSize ( integer $bytes, integer $precision = 1 ) : string
$bytes integer
$precision integer
Résultat string