Skip to content

Latest commit

 

History

History
16 lines (9 loc) · 572 Bytes

README.md

File metadata and controls

16 lines (9 loc) · 572 Bytes

DownloadFile

Class to help download files with try catch

Methods:

getFileInfo = @return SplFileInfo object

setFile = @param $filePatch, @return this object

setNewName = @param $newName, [@param $haveExtension = true ( default ) - false to add extension of the original file], [@param $extension = null ( default ) - string to new extension, this parameter ignores the parameter $haveExtension ], @return this object

setValidatorExtension = @param validExtensionslist, @return this object (optional)

download = @return file to download.

index.php is an example!