[ Index ] |
PHP Cross Reference of phpBB-3.3.14-deutsch |
[Source view] [Print] [Project Stats]
This file is part of the phpBB Forum Software package.
Copyright: | (c) phpBB Limited |
License: | GNU General Public License, version 2 (GPL-2.0) |
File Size: | 391 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
upload:: (15 methods):
__construct()
reset_vars()
set_allowed_extensions()
set_allowed_dimensions()
set_max_filesize()
set_disallowed_content()
set_error_prefix()
handle_upload()
assign_internal_error()
common_checks()
valid_extension()
valid_dimensions()
is_valid()
valid_content()
image_types()
__construct(filesystem_interface $filesystem, factory $factory, language $language, \bantu\IniGetWrapper\IniGetWrapper $php_ini, request_interface $request) X-Ref |
Init file upload class. param: filesystem_interface $filesystem param: factory $factory Files factory param: language $language Language class param: \bantu\IniGetWrapper\IniGetWrapper $php_ini ini_get() wrapper param: request_interface $request Request class |
reset_vars() X-Ref |
Reset vars |
set_allowed_extensions($allowed_extensions) X-Ref |
Set allowed extensions param: array $allowed_extensions Allowed file extensions return: \phpbb\files\upload This instance of upload |
set_allowed_dimensions($min_width, $min_height, $max_width, $max_height) X-Ref |
Set allowed dimensions param: int $min_width Minimum image width param: int $min_height Minimum image height param: int $max_width Maximum image width param: int $max_height Maximum image height return: \phpbb\files\upload This instance of upload |
set_max_filesize($max_filesize) X-Ref |
Set maximum allowed file size param: int $max_filesize Maximum file size return: \phpbb\files\upload This instance of upload |
set_disallowed_content($disallowed_content) X-Ref |
Set disallowed strings param: array $disallowed_content Disallowed content return: \phpbb\files\upload This instance of upload |
set_error_prefix($error_prefix) X-Ref |
Set error prefix param: string $error_prefix Prefix for language variables of errors return: \phpbb\files\upload This instance of upload |
handle_upload($type) X-Ref |
Handle upload based on type param: string $type Upload type return: \phpbb\files\filespec|bool A filespec instance if upload was |
assign_internal_error($errorcode) X-Ref |
Assign internal error param: string $errorcode Error code to assign return: string Error string |
common_checks($file) X-Ref |
Perform common file checks param: filespec $file Instance of filespec class |
valid_extension($file) X-Ref |
Check for allowed extension param: filespec $file Instance of filespec class return: bool True if extension is allowed, false if not |
valid_dimensions($file) X-Ref |
Check for allowed dimension param: filespec $file Instance of filespec class return: bool True if dimensions are valid or no constraints set, false |
is_valid($form_name) X-Ref |
Check if form upload is valid param: string $form_name Name of form return: bool True if form upload is valid, false if not |
valid_content($file) X-Ref |
Check for bad content (IE mime-sniffing) param: filespec $file Instance of filespec class return: bool True if content is valid, false if not |
image_types() X-Ref |
Get image type/extension mapping return: array Array containing the image types and their extensions |
Generated: Mon Nov 25 19:05:08 2024 | Cross-referenced by PHPXref 0.7.1 |