ZenphotoCMS 1.6.3

UploadHandler
in package

Table of Contents

Constants

IMAGETYPE_GIF  = 'image/gif'
IMAGETYPE_JPEG  = 'image/jpeg'
IMAGETYPE_PNG  = 'image/png'

Properties

$error_messages  : mixed
$image_objects  : mixed
$options  : mixed
$response  : mixed

Methods

__construct()  : mixed
delete()  : mixed
generate_response()  : mixed
get()  : mixed
get_config_bytes()  : mixed
get_response()  : mixed
head()  : mixed
post()  : mixed
basename()  : mixed
body()  : mixed
count_file_objects()  : mixed
create_scaled_image()  : mixed
destroy_image_object()  : mixed
download()  : mixed
fix_file_extension()  : mixed
fix_integer_overflow()  : mixed
gd_create_scaled_image()  : mixed
gd_destroy_image_object()  : mixed
gd_get_image_object()  : mixed
gd_imageflip()  : mixed
gd_orient_image()  : mixed
gd_set_image_object()  : mixed
get_download_url()  : mixed
get_error_message()  : mixed
get_file_name()  : mixed
get_file_name_param()  : mixed
get_file_names_params()  : mixed
get_file_object()  : mixed
get_file_objects()  : mixed
get_file_size()  : mixed
get_file_type()  : mixed
get_full_url()  : mixed
get_image_size()  : mixed
get_post_param()  : mixed
get_query_param()  : mixed
get_query_separator()  : mixed
get_scaled_image_file_paths()  : mixed
get_server_var()  : mixed
get_singular_param_name()  : mixed
get_unique_filename()  : mixed
get_upload_data()  : mixed
get_upload_path()  : mixed
get_user_id()  : mixed
get_user_path()  : mixed
get_valid_image_extensions()  : mixed
get_version_param()  : mixed
handle_file_upload()  : mixed
handle_form_data()  : mixed
handle_image_file()  : mixed
has_image_file_extension()  : mixed
header()  : mixed
imagemagick_create_scaled_image()  : mixed
imagetype()  : mixed
imagick_create_scaled_image()  : mixed
imagick_destroy_image_object()  : mixed
imagick_get_image_object()  : mixed
imagick_orient_image()  : mixed
imagick_set_image_object()  : mixed
initialize()  : mixed
is_valid_file_object()  : mixed
is_valid_image_file()  : mixed
readfile()  : mixed
send_access_control_headers()  : mixed
send_content_type_header()  : mixed
set_additional_file_properties()  : mixed
trim_file_name()  : mixed
upcount_name()  : mixed
upcount_name_callback()  : mixed
validate()  : mixed
validate_image_file()  : mixed

Constants

Properties

$error_messages

protected mixed $error_messages = array(1 => 'The uploaded file exceeds the upload_max_filesize directive in php.ini', 2 => 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form', 3 => 'The uploaded file was only partially uploaded', 4 => 'No file was uploaded', 6 => 'Missing a temporary folder', 7 => 'Failed to write file to disk', 8 => 'A PHP extension stopped the file upload', 'post_max_size' => 'The uploaded file exceeds the post_max_size directive in php.ini', 'max_file_size' => 'File is too big', 'min_file_size' => 'File is too small', 'accept_file_types' => 'Filetype not allowed', 'max_number_of_files' => 'Maximum number of files exceeded', 'invalid_file_type' => 'Invalid file type', 'max_width' => 'Image exceeds maximum width', 'min_width' => 'Image requires a minimum width', 'max_height' => 'Image exceeds maximum height', 'min_height' => 'Image requires a minimum height', 'abort' => 'File upload aborted', 'image_resize' => 'Failed to resize image')

Methods

__construct()

public __construct([mixed $options = null ][, mixed $initialize = true ][, mixed $error_messages = null ]) : mixed
Parameters
$options : mixed = null
$initialize : mixed = true
$error_messages : mixed = null

delete()

public delete([mixed $print_response = true ]) : mixed
Parameters
$print_response : mixed = true

generate_response()

public generate_response(mixed $content[, mixed $print_response = true ]) : mixed
Parameters
$content : mixed
$print_response : mixed = true

get()

public get([mixed $print_response = true ]) : mixed
Parameters
$print_response : mixed = true

get_config_bytes()

public get_config_bytes(mixed $val) : mixed
Parameters
$val : mixed

post()

public post([mixed $print_response = true ]) : mixed
Parameters
$print_response : mixed = true

basename()

protected basename(mixed $filepath[, mixed $suffix = null ]) : mixed
Parameters
$filepath : mixed
$suffix : mixed = null

create_scaled_image()

protected create_scaled_image(mixed $file_name, mixed $version, mixed $options) : mixed
Parameters
$file_name : mixed
$version : mixed
$options : mixed

destroy_image_object()

protected destroy_image_object(mixed $file_path) : mixed
Parameters
$file_path : mixed

fix_file_extension()

protected fix_file_extension(mixed $file_path, mixed $name, mixed $size, mixed $type, mixed $error, mixed $index, mixed $content_range) : mixed
Parameters
$file_path : mixed
$name : mixed
$size : mixed
$type : mixed
$error : mixed
$index : mixed
$content_range : mixed

fix_integer_overflow()

protected fix_integer_overflow(mixed $size) : mixed
Parameters
$size : mixed

gd_create_scaled_image()

protected gd_create_scaled_image(mixed $file_name, mixed $version, mixed $options) : mixed
Parameters
$file_name : mixed
$version : mixed
$options : mixed

gd_destroy_image_object()

protected gd_destroy_image_object(mixed $file_path) : mixed
Parameters
$file_path : mixed

gd_get_image_object()

protected gd_get_image_object(mixed $file_path, mixed $func[, mixed $no_cache = false ]) : mixed
Parameters
$file_path : mixed
$func : mixed
$no_cache : mixed = false

gd_imageflip()

protected gd_imageflip(mixed $image, mixed $mode) : mixed
Parameters
$image : mixed
$mode : mixed

gd_orient_image()

protected gd_orient_image(mixed $file_path, mixed $src_img) : mixed
Parameters
$file_path : mixed
$src_img : mixed

gd_set_image_object()

protected gd_set_image_object(mixed $file_path, mixed $image) : mixed
Parameters
$file_path : mixed
$image : mixed

get_download_url()

protected get_download_url(mixed $file_name[, mixed $version = null ][, mixed $direct = false ]) : mixed
Parameters
$file_name : mixed
$version : mixed = null
$direct : mixed = false

get_error_message()

protected get_error_message(mixed $error) : mixed
Parameters
$error : mixed

get_file_name()

protected get_file_name(mixed $file_path, mixed $name, mixed $size, mixed $type, mixed $error, mixed $index, mixed $content_range) : mixed
Parameters
$file_path : mixed
$name : mixed
$size : mixed
$type : mixed
$error : mixed
$index : mixed
$content_range : mixed

get_file_object()

protected get_file_object(mixed $file_name) : mixed
Parameters
$file_name : mixed

get_file_objects()

protected get_file_objects([mixed $iteration_method = 'get_file_object' ]) : mixed
Parameters
$iteration_method : mixed = 'get_file_object'

get_file_size()

protected get_file_size(mixed $file_path[, mixed $clear_stat_cache = false ]) : mixed
Parameters
$file_path : mixed
$clear_stat_cache : mixed = false

get_file_type()

protected get_file_type(mixed $file_path) : mixed
Parameters
$file_path : mixed

get_image_size()

protected get_image_size(mixed $file_path) : mixed
Parameters
$file_path : mixed

get_post_param()

protected get_post_param(mixed $id) : mixed
Parameters
$id : mixed

get_query_param()

protected get_query_param(mixed $id) : mixed
Parameters
$id : mixed

get_query_separator()

protected get_query_separator(mixed $url) : mixed
Parameters
$url : mixed

get_scaled_image_file_paths()

protected get_scaled_image_file_paths(mixed $file_name, mixed $version) : mixed
Parameters
$file_name : mixed
$version : mixed

get_server_var()

protected get_server_var(mixed $id) : mixed
Parameters
$id : mixed

get_unique_filename()

protected get_unique_filename(mixed $file_path, mixed $name, mixed $size, mixed $type, mixed $error, mixed $index, mixed $content_range) : mixed
Parameters
$file_path : mixed
$name : mixed
$size : mixed
$type : mixed
$error : mixed
$index : mixed
$content_range : mixed

get_upload_data()

protected get_upload_data(mixed $id) : mixed
Parameters
$id : mixed

get_upload_path()

protected get_upload_path([mixed $file_name = null ][, mixed $version = null ]) : mixed
Parameters
$file_name : mixed = null
$version : mixed = null

get_valid_image_extensions()

protected get_valid_image_extensions(mixed $file_path) : mixed
Parameters
$file_path : mixed

handle_file_upload()

protected handle_file_upload(mixed $uploaded_file, mixed $name, mixed $size, mixed $type, mixed $error[, mixed $index = null ][, mixed $content_range = null ]) : mixed
Parameters
$uploaded_file : mixed
$name : mixed
$size : mixed
$type : mixed
$error : mixed
$index : mixed = null
$content_range : mixed = null

handle_form_data()

protected handle_form_data(mixed $file, mixed $index) : mixed
Parameters
$file : mixed
$index : mixed

handle_image_file()

protected handle_image_file(mixed $file_path, mixed $file) : mixed
Parameters
$file_path : mixed
$file : mixed

has_image_file_extension()

protected has_image_file_extension(mixed $file_path) : mixed
Parameters
$file_path : mixed

imagemagick_create_scaled_image()

protected imagemagick_create_scaled_image(mixed $file_name, mixed $version, mixed $options) : mixed
Parameters
$file_name : mixed
$version : mixed
$options : mixed

imagetype()

protected imagetype(mixed $file_path) : mixed
Parameters
$file_path : mixed

imagick_create_scaled_image()

protected imagick_create_scaled_image(mixed $file_name, mixed $version, mixed $options) : mixed
Parameters
$file_name : mixed
$version : mixed
$options : mixed

imagick_destroy_image_object()

protected imagick_destroy_image_object(mixed $file_path) : mixed
Parameters
$file_path : mixed

imagick_get_image_object()

protected imagick_get_image_object(mixed $file_path[, mixed $no_cache = false ]) : mixed
Parameters
$file_path : mixed
$no_cache : mixed = false

imagick_orient_image()

protected imagick_orient_image(mixed $image) : mixed
Parameters
$image : mixed

imagick_set_image_object()

protected imagick_set_image_object(mixed $file_path, mixed $image) : mixed
Parameters
$file_path : mixed
$image : mixed

is_valid_file_object()

protected is_valid_file_object(mixed $file_name) : mixed
Parameters
$file_name : mixed

is_valid_image_file()

protected is_valid_image_file(mixed $file_path) : mixed
Parameters
$file_path : mixed

readfile()

protected readfile(mixed $file_path) : mixed
Parameters
$file_path : mixed

set_additional_file_properties()

protected set_additional_file_properties(mixed $file) : mixed
Parameters
$file : mixed

trim_file_name()

protected trim_file_name(mixed $file_path, mixed $name, mixed $size, mixed $type, mixed $error, mixed $index, mixed $content_range) : mixed
Parameters
$file_path : mixed
$name : mixed
$size : mixed
$type : mixed
$error : mixed
$index : mixed
$content_range : mixed

upcount_name()

protected upcount_name(mixed $name) : mixed
Parameters
$name : mixed

upcount_name_callback()

protected upcount_name_callback(mixed $matches) : mixed
Parameters
$matches : mixed

validate()

protected validate(mixed $uploaded_file, mixed $file, mixed $error, mixed $index, mixed $content_range) : mixed
Parameters
$uploaded_file : mixed
$file : mixed
$error : mixed
$index : mixed
$content_range : mixed

validate_image_file()

protected validate_image_file(mixed $uploaded_file, mixed $file, mixed $error, mixed $index) : mixed
Parameters
$uploaded_file : mixed
$file : mixed
$error : mixed
$index : mixed

        
On this page

Search results