Properties

$options

$options : 

Type

$error_messages

$error_messages : 

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

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() 

create_scaled_image()

create_scaled_image(  $file_name,   $version,   $options) 

Parameters

$file_name
$version
$options

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(  $name,   $type = null,   $index = null,   $content_range = null) 

Parameters

$name
$type
$index
$content_range

trim_file_name()

trim_file_name(  $name,   $type = null,   $index = null,   $content_range = null) 

Parameters

$name
$type
$index
$content_range

get_file_name()

get_file_name(  $name,   $type = null,   $index = null,   $content_range = null) 

Parameters

$name
$type
$index
$content_range

handle_form_data()

handle_form_data(  $file,   $index) 

Parameters

$file
$index

imageflip()

imageflip(  $image,   $mode) 

Parameters

$image
$mode

orient_image()

orient_image(  $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_server_var()

get_server_var(  $id) 

Parameters

$id

generate_response()

generate_response(  $content,   $print_response = true) 

Parameters

$content
$print_response

get_version_param()

get_version_param() 

get_file_name_param()

get_file_name_param() 

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()