[ Index ]

PHP Cross Reference of phpBB-3.2.11-deutsch




/vendor/symfony/http-foundation/File/ -> File.php (summary)

(no description)

File Size: 138 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

File:: (6 methods):

Class: File  - X-Ref

A file in the file system.

__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 (e.g. "application/pdf")

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: self 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: Wed Nov 11 20:33:01 2020 Cross-referenced by PHPXref 0.7.1