Filehandler
class Filehandler
Properties
| string | $destinationpath | ||
| array | $fileinfo | ||
| string | $destinationfile | ||
| array | $errors | ||
| string | $path_zip |
Methods
Filehandler constructor.
No description
No description
No description
Creates a ZIP archive of passed files and stores on HDD or sends it on the fly to the browser You should use this function instead of the separate functions above
No description
Initiates download of the via GPvars[download_id] passed file link
No description
Returns a download ID for the given file
Get Image from File Path
Returns a order ID for the given file
No description
No description
No description
Resizes the passed image to the given size.
No description
Returns an GD Image Ressource of the passed file
No description
No description
No description
Saves the passed GD image ressource to the specified file
Details
at line 48
__construct()
Filehandler constructor.
at line 71
void
add_file(string $destinationpath, string $destinationfile, string $sourcefile)
No description
at line 1040
add_to_zip(string $file)
No description
at line 262
checkTypes(array $extensions)
No description
at line 1132
create_zip_archive(array $filelist, string $zip_file_name, string|bool $zip_root_path = false, bool $storepaths = true, bool $send_to_browser = false, bool $die_when_sent = true)
Creates a ZIP archive of passed files and stores on HDD or sends it on the fly to the browser You should use this function instead of the separate functions above
at line 1227
bool
deflate_zip($source, $destination)
No description
at line 925
bool
download_file(string $base_dir)
Initiates download of the via GPvars[download_id] passed file link
at line 329
false|string
get_cached_imageresize(string $image_file, int $width, int $height, array $download_params = array())
No description
at line 991
string
get_download_id(string $file, string|bool $filename = false, string|bool $mime = false, bool $save = false, bool $zip = false)
Returns a download ID for the given file
at line 471
bool
get_image(string $imagefile, mixed $memory_factor = 1)
Get Image from File Path
at line 1022
string
get_order_id(string $file, string $label, string $path, string|bool $filename = false)
Returns a order ID for the given file
at line 1092
bool
get_zip(string $zip_filename, string|bool $send_file_name = false, bool $die_when_sent = true)
No description
at line 890
array
gif_info($filename)
No description
at line 298
imageGetOrientation($image_file)
No description
at line 290
bool|null|string
imageResize(string $image_file, mixed $width, mixed $height, string $output_image = 'SOURCE', mixed $params = array())
Resizes the passed image to the given size.
at line 314
image_crop(int $image_file_path, int $w, int $h, int $x, int $y, int $rotate = 0, string $target_file_path = null)
No description
at line 427
string
increase_memory_limit(string $imagefile, float $memory_factor = 1.0)
Returns an GD Image Ressource of the passed file
at line 91
void
process(string $scenario = 'manual', array|bool $params = false)
No description
at line 1054
bool
process_zip(string $zip_filename, string|bool $zip_root_path = false, bool $storepaths = true)
No description
at line 211
bool
save()
No description
at line 523
bool
save_image(mixed $dst_img, mixed $output_image, string $ext = 'jpg', int $quality = 90)
Saves the passed GD image ressource to the specified file