FileKit
trait FileKit (View source)
Attire Filekit Trait
Used to define the file relative paths and extensions
Methods
static bool
rtrim(string $path, string $delimiter = '/')
Right trim a file path.
static bool
haveExtension(string $file)
Check if file have extension.
static bool
isValidFileExtension(string $ext)
Check if the file have a valid extension.
static
setFileExtension(string $ext)
Set a new file extension.
static string
getFileExtension()
Get current file extension.
Details
at line 31
static bool
rtrim(string $path, string $delimiter = '/')
Right trim a file path.
at line 43
static bool
haveExtension(string $file)
Check if file have extension.
at line 58
static bool
isValidFileExtension(string $ext)
Check if the file have a valid extension.
at line 68
static
setFileExtension(string $ext)
Set a new file extension.
at line 78
static string
getFileExtension()
Get current file extension.