\UploadHandler

Summary

Methods
Properties
Constants
__construct()
get_config_bytes()
generate_response()
get_response()
head()
get()
post()
delete()
No public properties found
IMAGETYPE_GIF
IMAGETYPE_JPEG
IMAGETYPE_PNG
initialize()
get_full_url()
get_user_id()
get_user_path()
get_upload_path()
get_query_separator()
get_download_url()
set_additional_file_properties()
fix_integer_overflow()
get_file_size()
is_valid_file_object()
get_file_object()
get_file_objects()
count_file_objects()
get_error_message()
validate()
upcount_name_callback()
upcount_name()
get_unique_filename()
fix_file_extension()
trim_file_name()
get_file_name()
get_scaled_image_file_paths()
gd_get_image_object()
gd_set_image_object()
gd_destroy_image_object()
gd_imageflip()
gd_orient_image()
gd_create_scaled_image()
imagick_get_image_object()
imagick_set_image_object()
imagick_destroy_image_object()
imagick_orient_image()
imagick_create_scaled_image()
imagemagick_create_scaled_image()
get_image_size()
create_scaled_image()
destroy_image_object()
imagetype()
is_valid_image_file()
handle_image_file()
handle_file_upload()
readfile()
body()
header()
get_upload_data()
get_post_param()
get_query_param()
get_server_var()
handle_form_data()
get_version_param()
get_singular_param_name()
get_file_name_param()
get_file_names_params()
get_file_type()
download()
send_content_type_header()
send_access_control_headers()
basename()
$options
$error_messages
$image_objects
$jomres_media_centre_images
N/A
No private methods found
No private properties found
N/A

Constants

IMAGETYPE_GIF

IMAGETYPE_GIF

IMAGETYPE_JPEG

IMAGETYPE_JPEG

IMAGETYPE_PNG

IMAGETYPE_PNG

Properties

$options

$options : 

Type

$error_messages

$error_messages : 

Type

$image_objects

$image_objects : 

Type

$jomres_media_centre_images

$jomres_media_centre_images : 

Type

Methods

__construct()

__construct(  $options = null,   $initialize = true,   $error_messages = null) 

Parameters

$options
$initialize
$error_messages

get_config_bytes()

get_config_bytes(  $val) 

Parameters

$val

generate_response()

generate_response(  $content,   $print_response = true) 

Parameters

$content
$print_response

get_response()

get_response() 

head()

head() 

get()

get(  $print_response = true) 

Parameters

$print_response

post()

post(  $print_response = true) 

Parameters

$print_response

delete()

delete(  $print_response = true) 

Parameters

$print_response

initialize()

initialize() 

get_full_url()

get_full_url() 

get_user_id()

get_user_id() 

get_user_path()

get_user_path() 

get_upload_path()

get_upload_path(  $file_name = null,   $version = null) 

Parameters

$file_name
$version

get_query_separator()

get_query_separator(  $url) 

Parameters

$url

get_download_url()

get_download_url(  $file_name,   $version = null,   $direct = false) 

Parameters

$file_name
$version
$direct

set_additional_file_properties()

set_additional_file_properties(  $file) 

Parameters

$file

fix_integer_overflow()

fix_integer_overflow(  $size) 

Parameters

$size

get_file_size()

get_file_size(  $file_path,   $clear_stat_cache = false) 

Parameters

$file_path
$clear_stat_cache

is_valid_file_object()

is_valid_file_object(  $file_name) 

Parameters

$file_name

get_file_object()

get_file_object(  $file_name) 

Parameters

$file_name

get_file_objects()

get_file_objects(  $iteration_method = 'get_file_object') 

Parameters

$iteration_method

count_file_objects()

count_file_objects() 

get_error_message()

get_error_message(  $error) 

Parameters

$error

validate()

validate(  $uploaded_file,   $file,   $error,   $index) 

Parameters

$uploaded_file
$file
$error
$index

upcount_name_callback()

upcount_name_callback(  $matches) 

Parameters

$matches

upcount_name()

upcount_name(  $name) 

Parameters

$name

get_unique_filename()

get_unique_filename(  $file_path,   $name,   $size,   $type,   $error,   $index,   $content_range) 

Parameters

$file_path
$name
$size
$type
$error
$index
$content_range

fix_file_extension()

fix_file_extension(  $file_path,   $name,   $size,   $type,   $error,   $index,   $content_range) 

Parameters

$file_path
$name
$size
$type
$error
$index
$content_range

trim_file_name()

trim_file_name(  $file_path,   $name,   $size,   $type,   $error,   $index,   $content_range) 

Parameters

$file_path
$name
$size
$type
$error
$index
$content_range

get_file_name()

get_file_name(  $file_path,   $name,   $size,   $type,   $error,   $index,   $content_range) 

Parameters

$file_path
$name
$size
$type
$error
$index
$content_range

get_scaled_image_file_paths()

get_scaled_image_file_paths(  $file_name,   $version) 

Parameters

$file_name
$version

gd_get_image_object()

gd_get_image_object(  $file_path,   $func,   $no_cache = false) 

Parameters

$file_path
$func
$no_cache

gd_set_image_object()

gd_set_image_object(  $file_path,   $image) 

Parameters

$file_path
$image

gd_destroy_image_object()

gd_destroy_image_object(  $file_path) 

Parameters

$file_path

gd_imageflip()

gd_imageflip(  $image,   $mode) 

Parameters

$image
$mode

gd_orient_image()

gd_orient_image(  $file_path,   $src_img) 

Parameters

$file_path
$src_img

gd_create_scaled_image()

gd_create_scaled_image(  $file_name,   $version,   $options) 

Parameters

$file_name
$version
$options

imagick_get_image_object()

imagick_get_image_object(  $file_path,   $no_cache = false) 

Parameters

$file_path
$no_cache

imagick_set_image_object()

imagick_set_image_object(  $file_path,   $image) 

Parameters

$file_path
$image

imagick_destroy_image_object()

imagick_destroy_image_object(  $file_path) 

Parameters

$file_path

imagick_orient_image()

imagick_orient_image(  $image) 

Parameters

$image

imagick_create_scaled_image()

imagick_create_scaled_image(  $file_name,   $version,   $options) 

Parameters

$file_name
$version
$options

imagemagick_create_scaled_image()

imagemagick_create_scaled_image(  $file_name,   $version,   $options) 

Parameters

$file_name
$version
$options

get_image_size()

get_image_size(  $file_path) 

Parameters

$file_path

create_scaled_image()

create_scaled_image(  $file_name,   $version,   $options) 

Parameters

$file_name
$version
$options

destroy_image_object()

destroy_image_object(  $file_path) 

Parameters

$file_path

imagetype()

imagetype(  $file_path) 

Parameters

$file_path

is_valid_image_file()

is_valid_image_file(  $file_path) 

Parameters

$file_path

handle_image_file()

handle_image_file(  $file_path,   $file) 

Parameters

$file_path
$file

handle_file_upload()

handle_file_upload(  $uploaded_file,   $name,   $size,   $type,   $error,   $index = null,   $content_range = null) 

Parameters

$uploaded_file
$name
$size
$type
$error
$index
$content_range

readfile()

readfile(  $file_path) 

Parameters

$file_path

body()

body(  $str) 

Parameters

$str

header()

header(  $str) 

Parameters

$str

get_upload_data()

get_upload_data(  $id) 

Parameters

$id

get_post_param()

get_post_param(  $id) 

Parameters

$id

get_query_param()

get_query_param(  $id) 

Parameters

$id

get_server_var()

get_server_var(  $id) 

Parameters

$id

handle_form_data()

handle_form_data(  $file,   $index) 

Parameters

$file
$index

get_version_param()

get_version_param() 

get_singular_param_name()

get_singular_param_name() 

get_file_name_param()

get_file_name_param() 

get_file_names_params()

get_file_names_params() 

get_file_type()

get_file_type(  $file_path) 

Parameters

$file_path

download()

download() 

send_content_type_header()

send_content_type_header() 

send_access_control_headers()

send_access_control_headers() 

basename()

basename(  $filepath,   $suffix = null) 

Parameters

$filepath
$suffix