[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 148 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
File:: (7 methods):
__construct()
guessExtension()
getMimeType()
getExtension()
move()
getTargetFile()
getName()
__construct($path, $checkPath = true) X-Ref |
Constructs a new file from the given path. param: string $path The path to the file param: bool $checkPath Whether to check the path or not |
guessExtension() X-Ref |
Returns the extension based on the mime type. If the mime type is unknown, returns null. This method uses the mime type as guessed by getMimeType() to guess the file extension. return: string|null The guessed extension or null if it cannot be guessed |
getMimeType() X-Ref |
Returns the mime type of the file. The mime type is guessed using a MimeTypeGuesser instance, which uses finfo(), mime_content_type() and the system binary "file" (in this order), depending on which of those are available. return: string|null The guessed mime type (i.e. "application/pdf") |
getExtension() X-Ref |
Returns the extension of the file. \SplFileInfo::getExtension() is not available before PHP 5.3.6 return: string The extension |
move($directory, $name = null) X-Ref |
Moves the file to a new location. param: string $directory The destination folder param: string $name The new file name return: File A File object representing the new file |
getTargetFile($directory, $name = null) X-Ref |
No description |
getName($name) X-Ref |
Returns locale independent base name of the given path. param: string $name The new file name return: string containing |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |