[ Index ] |
PHP Cross Reference of phpBB-3.3.12-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: | 587 lines (15 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
filespec:: (16 methods):
__construct()
set_upload_ary()
set_upload_namespace()
init_error()
set_error()
clean_filename()
get()
is_image()
is_uploaded()
remove()
get_extension()
get_mimetype()
get_filesize()
check_content()
move_file()
additional_checks()
__construct(\phpbb\filesystem\filesystem_interface $phpbb_filesystem, language $language, \bantu\IniGetWrapper\IniGetWrapper $php_ini, \FastImageSize\FastImageSize $imagesize, $phpbb_root_path, \phpbb\mimetype\guesser $mimetype_guesser = null, \phpbb\plupload\plupload $plupload = null) X-Ref |
File upload class param: \phpbb\filesystem\filesystem_interface $phpbb_filesystem Filesystem param: language $language Language param: \bantu\IniGetWrapper\IniGetWrapper $php_ini ini_get() wrapper param: \FastImageSize\FastImageSize $imagesize Imagesize class param: string $phpbb_root_path phpBB root path param: \phpbb\mimetype\guesser $mimetype_guesser Mime type guesser param: \phpbb\plupload\plupload $plupload Plupload |
set_upload_ary($upload_ary) X-Ref |
Set upload ary return: filespec This instance of the filespec class param: array $upload_ary Upload ary |
set_upload_namespace($namespace) X-Ref |
Set the upload namespace return: filespec This instance of the filespec class param: upload $namespace Instance of upload class |
init_error() X-Ref |
Check if class members were not properly initialised yet return: bool True if there was an init error, false if not |
set_error($error) X-Ref |
Set error in error array return: \phpbb\files\filespec This instance of the filespec class param: mixed $error Content for error array |
clean_filename($mode = 'unique', $prefix = '', $user_id = '') X-Ref |
Cleans destination filename param: string $mode Either real, unique, or unique_ext. Real creates a param: string $prefix Prefix applied to filename param: string $user_id The user_id is only needed for when cleaning a user's avatar |
get($property) X-Ref |
Get property from file object return: mixed Content of property param: string $property Name of property |
is_image() X-Ref |
Check if file is an image (mime type) return: bool true if it is an image, false if not |
is_uploaded() X-Ref |
Check if the file got correctly uploaded return: bool true if it is a valid upload, false if not |
remove() X-Ref |
Remove file |
get_extension($filename) X-Ref |
Get file extension return: string Extension of the supplied filename param: string $filename Filename that needs to be checked |
get_mimetype($filename) X-Ref |
Get mime type return: string Mime type of supplied filename param: string $filename Filename that needs to be checked |
get_filesize($filename) X-Ref |
Get file size return: int File size param: string $filename File name of file to check |
check_content($disallowed_content) X-Ref |
Check the first 256 bytes for forbidden content return: bool False if disallowed content found, true if not param: array $disallowed_content Array containg disallowed content |
move_file($destination, $overwrite = false, $skip_image_check = false, $chmod = false) X-Ref |
Move file to destination folder The phpbb_root_path variable will be applied to the destination path return: bool True if file was moved, false if not param: string $destination Destination path, for example $config['avatar_path'] param: bool $overwrite If set to true, an already existing file will be overwritten param: bool $skip_image_check If set to true, the check for the file to be a valid image is skipped param: string|bool $chmod Permission mask for chmodding the file after a successful move. |
additional_checks() X-Ref |
Performing additional checks return: bool False if issue was found, true if not |
Generated: Sun Jun 23 12:25:44 2024 | Cross-referenced by PHPXref 0.7.1 |