get_download_link() get_download_link(int $form_id, string $field_key, int $user_id) : string File download link generate Parameters int $form_id string $field_key int $user_id Returns string
image_download() image_download( $user_id, $field_key, $field_value) : mixed Parameters $user_id $field_key $field_value Returns mixed
file_download() file_download( $user_id, $field_key, $field_value) : mixed Parameters $user_id $field_key $field_value Returns mixed
get_fonticon_by_ext() get_fonticon_by_ext( $extension) : string Get extension icon Parameters $extension Returns string
get_fonticon_bg_by_ext() get_fonticon_bg_by_ext( $extension) : string Get extension icon background Parameters $extension Returns string
path_only() path_only( $file) : string Get path only without file name Parameters $file Returns string
fix_image_orientation() fix_image_orientation( $rotate, $source) : resource Fix image orientation Parameters $rotate $source Returns resource
create_and_copy_image() create_and_copy_image( $source, $destination, int $quality = 100) : array Process an image Parameters $source $destination int $quality Returns array
upload_temp_file() upload_temp_file( $source, $destination) : mixed Process a file Parameters $source $destination Returns mixed
new_image_upload_temp() new_image_upload_temp( $source, $destination, int $quality = 100) : string Process a temp upload Parameters $source $destination int $quality Returns string
new_file_upload_temp() new_file_upload_temp( $source, $destination) : string Process a temp upload for files Parameters $source $destination Returns string
get_extension_by_mime_type() get_extension_by_mime_type( $mime) : mixed Get extension by mime type Parameters $mime Returns mixed
in_array() in_array( $value, $array) : bool If a value exists in comma seperated list Parameters $value $array Returns bool
delete_file() delete_file(string $src) : bool This function will delete file upload from server Parameters string $src Returns bool
delete_core_user_photo() delete_core_user_photo( $user_id, $type) : mixed Delete a main user photo Parameters $user_id $type Returns mixed
resize_image() resize_image( $file, $crop) : string Resize a local image Parameters $file $crop Returns string
new_user() new_user( $user_id) : mixed Make a user folder for uploads Parameters $user_id Returns mixed
remove_old_files() remove_old_files(string $dir, int|string $timestamp = NULL) : mixed Remove old files Parameters string $dir Path to directoty. int|string $timestamp Unix timestamp or PHP relative time. All older files will be removed. Returns mixed
get_profile_photo_size() get_profile_photo_size(string $type) : array Get the list of profile/cover sizes Parameters string $type Returns array
new_user_upload() new_user_upload( $user_id, $source, $key) : string New user upload Parameters $user_id $source $key Returns string
format_bytes() format_bytes( $size, int $precision = 1) : string Format Bytes Parameters $size int $precision Returns string