|
dbXapp 2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
|
Auto-generated DBX system class override. More...
Additional Inherited Members | |
| Public Member Functions inherited from dbxUpload | |
| init () | |
| Init or re-init all the processing variables to their default values. | |
| __construct ($file='', $lang='en_GB') | |
| Constructor, for PHP5+. | |
| upload ($file, $lang='en_GB') | |
| Constructor, for PHP4. | |
| gdversion ($full=false) | |
| Returns the version of GD. | |
| function_enabled ($func) | |
| Checks if a function is available. | |
| rmkdir ($path, $mode=0755) | |
| Creates directories recursively. | |
| _mkdir ($path, $mode=0755) | |
| Creates directory. | |
| translate ($str, $tokens=array()) | |
| Translate error messages. | |
| temp_dir () | |
| Returns the temp directory. | |
| sanitize ($filename) | |
| Sanitize a file name. | |
| getcolors ($color) | |
| Decodes colors. | |
| getsize ($size) | |
| Decodes sizes. | |
| getoffsets ($offsets, $x, $y, $round=true, $negative=true) | |
| Decodes offsets. | |
| imagecreatenew ($x, $y, $fill=true, $trsp=false) | |
| Creates a container image. | |
| imagetransfer ($src_im, $dst_im) | |
| Transfers an image from the container to the destination image. | |
| imageunset ($im) | |
| Destroy GD ressource. | |
| imagecopymergealpha (&$dst_im, &$src_im, $dst_x, $dst_y, $src_x, $src_y, $src_w, $src_h, $pct=0) | |
| Merges two GD images while preserving alpha information. | |
| process ($server_path=null) | |
| Actually uploads the file, and act on it according to the set processing class variables. | |
| clean () | |
| Deletes the uploaded file from its temporary location. | |
| imagecreatefrombmp ($filename) | |
| Opens a BMP image. | |
| imagebmp (&$im, $filename="") | |
| Saves a BMP image. | |
| Public Attributes inherited from dbxUpload | |
| $version | |
| Class version. | |
| $file_src_name | |
| Uploaded file name. | |
| $file_src_name_body | |
| Uploaded file name body (i.e. | |
| $file_src_name_ext | |
| Uploaded file name extension. | |
| $file_src_mime | |
| Uploaded file MIME type. | |
| $file_src_size | |
| Uploaded file size, in bytes. | |
| $file_src_error | |
| Holds eventual PHP error code from $_FILES. | |
| $file_src_pathname | |
| Uloaded file name, including server path. | |
| $file_src_temp | |
| Uloaded file name temporary copy. | |
| $file_dst_path | |
| Destination file name. | |
| $file_dst_name | |
| Destination file name. | |
| $file_dst_name_body | |
| Destination file name body (i.e. | |
| $file_dst_name_ext | |
| Destination file extension. | |
| $file_dst_pathname | |
| Destination file name, including path. | |
| $image_src_x | |
| Source image width. | |
| $image_src_y | |
| Source image height. | |
| $image_src_bits | |
| Source image color depth. | |
| $image_src_pixels | |
| Number of pixels. | |
| $image_src_type | |
| Type of image (png, gif, jpg, webp or bmp). | |
| $image_dst_x | |
| Destination image width. | |
| $image_dst_y | |
| Destination image height. | |
| $image_dst_type | |
| Destination image type (png, gif, jpg, webp or bmp). | |
| $image_supported | |
| Supported image formats. | |
| $file_is_image | |
| Flag to determine if the source file is an image. | |
| $uploaded | |
| Flag set after instanciating the class. | |
| $no_upload_check | |
| Flag stopping PHP upload checks. | |
| $processed | |
| Flag set after calling a process. | |
| $error | |
| Holds eventual error message in plain english. | |
| $log | |
| Holds an HTML formatted log. | |
| $file_new_name_body | |
| Set this variable to replace the name body (i.e. | |
| $file_name_body_add | |
| Set this variable to append a string to the file name body. | |
| $file_name_body_pre | |
| Set this variable to prepend a string to the file name body. | |
| $file_new_name_ext | |
| Set this variable to change the file extension. | |
| $file_safe_name | |
| Set this variable to format the filename (spaces changed to _). | |
| $file_force_extension | |
| Forces an extension if the source file doesn't have one. | |
| $mime_check | |
| Set this variable to false if you don't want to check the MIME against the allowed list. | |
| $mime_fileinfo | |
| Set this variable to false in the init() function if you don't want to check the MIME with Fileinfo PECL extension. | |
| $mime_file | |
| Set this variable to false in the init() function if you don't want to check the MIME with UNIX file() command. | |
| $mime_magic | |
| Set this variable to false in the init() function if you don't want to check the MIME with the magic.mime file. | |
| $mime_getimagesize | |
| Set this variable to false in the init() function if you don't want to check the MIME with getimagesize(). | |
| $no_script | |
Set this variable to false if you don't want to turn dangerous scripts into simple text files The list of blacklisted extensions is in dangerous. | |
| $dangerous | |
| Dangerous file extensions. | |
| $file_auto_rename | |
| Set this variable to true to allow automatic renaming of the file if the file already exists. | |
| $dir_auto_create | |
| Set this variable to true to allow automatic creation of the destination directory if it is missing (works recursively). | |
| $dir_auto_chmod | |
| Set this variable to true to allow automatic chmod of the destination directory if it is not writeable. | |
| $dir_chmod | |
| Set this variable to the default chmod you want the class to use when creating directories, or attempting to write in a directory. | |
| $file_overwrite | |
| Set this variable tu true to allow overwriting of an existing file. | |
| $file_max_size | |
| Set this variable to change the maximum size in bytes for an uploaded file. | |
| $file_max_size_raw | |
| Max file size, from php.ini. | |
| $image_resize | |
| Set this variable to true to resize the file if it is an image. | |
| $image_convert | |
| Set this variable to convert the file if it is an image. | |
| $image_x | |
| Set this variable to the wanted (or maximum/minimum) width for the processed image, in pixels. | |
| $image_y | |
| Set this variable to the wanted (or maximum/minimum) height for the processed image, in pixels. | |
| $image_ratio | |
Set this variable to keep the original size ratio to fit within image_x x image_y. | |
| $image_ratio_crop | |
Set this variable to keep the original size ratio to fit within image_x x image_y. | |
| $image_ratio_fill | |
Set this variable to keep the original size ratio to fit within image_x x image_y. | |
| $image_ratio_pixels | |
Set this variable to a number of pixels so that image_x and image_y are the best match possible. | |
| $image_ratio_x | |
Set this variable to calculate image_x automatically , using image_y and conserving ratio. | |
| $image_ratio_y | |
Set this variable to calculate image_y automatically , using image_x and conserving ratio. | |
| $image_ratio_no_zoom_in | |
(deprecated) Set this variable to keep the original size ratio to fit within image_x x image_y, but only if original image is bigger | |
| $image_ratio_no_zoom_out | |
(deprecated) Set this variable to keep the original size ratio to fit within image_x x image_y, but only if original image is smaller | |
| $image_no_enlarging | |
| Cancel resizing if the resized image is bigger than the original image, to prevent enlarging. | |
| $image_no_shrinking | |
| Cancel resizing if the resized image is smaller than the original image, to prevent shrinking. | |
| $image_max_width | |
| Set this variable to set a maximum image width, above which the upload will be invalid. | |
| $image_max_height | |
| Set this variable to set a maximum image height, above which the upload will be invalid. | |
| $image_max_pixels | |
| Set this variable to set a maximum number of pixels for an image, above which the upload will be invalid. | |
| $image_max_ratio | |
| Set this variable to set a maximum image aspect ratio, above which the upload will be invalid. | |
| $image_min_width | |
| Set this variable to set a minimum image width, below which the upload will be invalid. | |
| $image_min_height | |
| Set this variable to set a minimum image height, below which the upload will be invalid. | |
| $image_min_pixels | |
| Set this variable to set a minimum number of pixels for an image, below which the upload will be invalid. | |
| $image_min_ratio | |
| Set this variable to set a minimum image aspect ratio, below which the upload will be invalid. | |
| $png_compression | |
| Compression level for PNG images. | |
| $jpeg_quality | |
| Quality of JPEG created/converted destination image. | |
| $webp_quality | |
| Quality of WebP created/converted destination image. | |
| $jpeg_size | |
| Determines the quality of the JPG image to fit a desired file size. | |
| $image_interlace | |
| Turns the interlace bit on. | |
| $image_is_transparent | |
| Flag set to true when the image is transparent. | |
| $image_transparent_color | |
| Transparent color in a palette. | |
| $image_background_color | |
| Background color, used to paint transparent areas with. | |
| $image_default_color | |
| Default color for non alpha-transparent images. | |
| $image_is_palette | |
| Flag set to true when the image is not true color. | |
| $image_brightness | |
| Corrects the image brightness. | |
| $image_contrast | |
| Corrects the image contrast. | |
| $image_opacity | |
| Changes the image opacity. | |
| $image_threshold | |
| Applies threshold filter. | |
| $image_tint_color | |
| Applies a tint on the image. | |
| $image_overlay_color | |
| Applies a colored overlay on the image. | |
| $image_overlay_opacity | |
| Sets the opacity for the colored overlay. | |
| $image_negative | |
| Inverts the color of an image. | |
| $image_greyscale | |
| Turns the image into greyscale. | |
| $image_pixelate | |
| Pixelate an image. | |
| $image_unsharp | |
| Applies an unsharp mask, with alpha transparency support. | |
| $image_unsharp_amount | |
| Sets the unsharp mask amount. | |
| $image_unsharp_radius | |
| Sets the unsharp mask radius. | |
| $image_unsharp_threshold | |
| Sets the unsharp mask threshold. | |
| $image_text | |
| Adds a text label on the image. | |
| $image_text_direction | |
| Sets the text direction for the text label. | |
| $image_text_color | |
| Sets the text color for the text label. | |
| $image_text_opacity | |
| Sets the text opacity in the text label. | |
| $image_text_background | |
| Sets the text background color for the text label. | |
| $image_text_background_opacity | |
| Sets the text background opacity in the text label. | |
| $image_text_font | |
| Sets the text font in the text label. | |
| $image_text_size | |
| Sets the text font size for TrueType fonts. | |
| $image_text_angle | |
| Sets the text angle for TrueType fonts. | |
| $image_text_position | |
| Sets the text label position within the image. | |
| $image_text_x | |
| Sets the text label absolute X position within the image. | |
| $image_text_y | |
| Sets the text label absolute Y position within the image. | |
| $image_text_padding | |
| Sets the text label padding. | |
| $image_text_padding_x | |
| Sets the text label horizontal padding. | |
| $image_text_padding_y | |
| Sets the text label vertical padding. | |
| $image_text_alignment | |
| Sets the text alignment. | |
| $image_text_line_spacing | |
| Sets the text line spacing. | |
| $image_reflection_height | |
| Sets the height of the reflection. | |
| $image_reflection_space | |
| Sets the space between the source image and its relection. | |
| $image_reflection_opacity | |
| Sets the initial opacity of the reflection. | |
| $image_auto_rotate | |
| Automatically rotates the image according to EXIF data (JPEG only). | |
| $image_flip | |
| Flips the image vertically or horizontally. | |
| $image_rotate | |
| Rotates the image by increments of 45 degrees. | |
| $image_crop | |
| Crops an image. | |
| $image_precrop | |
| Crops an image, before an eventual resizing. | |
| $image_bevel | |
| Adds a bevel border on the image. | |
| $image_bevel_color1 | |
| Top and left bevel color. | |
| $image_bevel_color2 | |
| Right and bottom bevel color. | |
| $image_border | |
| Adds a single-color border on the outer of the image. | |
| $image_border_color | |
| Border color. | |
| $image_border_opacity | |
| Sets the opacity for the borders. | |
| $image_border_transparent | |
| Adds a fading-to-transparent border on the image. | |
| $image_frame | |
| Adds a multi-color frame on the outer of the image. | |
| $image_frame_colors | |
| Sets the colors used to draw a frame. | |
| $image_frame_opacity | |
| Sets the opacity for the frame. | |
| $image_watermark | |
| Adds a watermark on the image. | |
| $image_watermark_position | |
| Sets the watermarkposition within the image. | |
| $image_watermark_x | |
| Sets the watermark absolute X position within the image. | |
| $image_watermark_y | |
| Sets the twatermark absolute Y position within the image. | |
| $image_watermark_no_zoom_in | |
| Prevents the watermark to be resized up if it is smaller than the image. | |
| $image_watermark_no_zoom_out | |
| Prevents the watermark to be resized down if it is bigger than the image. | |
| $mime_types | |
| List of MIME types per extension. | |
| $allowed | |
| Allowed MIME types or file extensions. | |
| $forbidden | |
| Forbidden MIME types or file extensions. | |
| $translation | |
| Array of translated error messages. | |
| $lang | |
| Language selected for the translations. | |
Auto-generated DBX system class override.
Requested class: dbxUpload Override class: myUpload
Definition at line 7 of file myUpload.class.php.