Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($path, $checkPath=true) | |
__construct (string $path, bool $checkPath=true) | |
getMimeType () | |
getMimeType () | |
guessExtension () | |
guessExtension () | |
move ($directory, $name=null) | |
move ($directory, $name=null) | |
Protected Member Functions | |
getName ($name) | |
getName ($name) | |
getTargetFile ($directory, $name=null) | |
getTargetFile ($directory, $name=null) | |
A file in the file system.
Definition at line 24 of file lib/vendor/symfony/http-foundation/File/File.php.
Symfony\Component\HttpFoundation\File\File::__construct | ( | $path, | |
$checkPath = true |
|||
) |
Constructs a new file from the given path.
string | $path | The path to the file |
bool | $checkPath | Whether to check the path or not |
FileNotFoundException | If the given path is not a file |
Reimplemented in Symfony\Component\HttpFoundation\Tests\File\FakeFile.
Definition at line 34 of file lib/vendor/symfony/http-foundation/File/File.php.
Symfony\Component\HttpFoundation\File\File::__construct | ( | string | $path, |
bool | $checkPath = true |
||
) |
Constructs a new file from the given path.
string | $path | The path to the file |
bool | $checkPath | Whether to check the path or not |
FileNotFoundException | If the given path is not a file |
Definition at line 33 of file vendor/symfony/http-foundation/File/File.php.
Symfony\Component\HttpFoundation\File\File::getMimeType | ( | ) |
Returns the mime type of the file.
The mime type is guessed using a MimeTypeGuesserInterface instance, which uses finfo_file() then the "file" system binary, depending on which of those are available.
Definition at line 71 of file vendor/symfony/http-foundation/File/File.php.
References Symfony\Component\Mime\MimeTypes\getDefault().
Symfony\Component\HttpFoundation\File\File::getMimeType | ( | ) |
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.
Definition at line 75 of file lib/vendor/symfony/http-foundation/File/File.php.
References Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser\getInstance().
Referenced by Symfony\Component\HttpFoundation\File\File\guessExtension().
|
protected |
Returns locale independent base name of the given path.
string | $name | The new file name |
Definition at line 127 of file vendor/symfony/http-foundation/File/File.php.
|
protected |
Returns locale independent base name of the given path.
string | $name | The new file name |
Definition at line 128 of file lib/vendor/symfony/http-foundation/File/File.php.
Referenced by Symfony\Component\HttpFoundation\File\UploadedFile\__construct(), and Symfony\Component\HttpFoundation\File\File\getTargetFile().
|
protected |
Definition at line 105 of file vendor/symfony/http-foundation/File/File.php.
References Symfony\Component\HttpFoundation\File\File\getName().
|
protected |
Definition at line 106 of file lib/vendor/symfony/http-foundation/File/File.php.
References Symfony\Component\HttpFoundation\File\File\getName().
Referenced by Symfony\Component\HttpFoundation\File\File\move(), and Symfony\Component\HttpFoundation\File\UploadedFile\move().
Symfony\Component\HttpFoundation\File\File::guessExtension | ( | ) |
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.
Definition at line 55 of file vendor/symfony/http-foundation/File/File.php.
References Symfony\Component\Mime\MimeTypes\getDefault(), and Symfony\Component\HttpFoundation\File\File\getMimeType().
Symfony\Component\HttpFoundation\File\File::guessExtension | ( | ) |
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.
Definition at line 56 of file lib/vendor/symfony/http-foundation/File/File.php.
References Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser\getInstance(), and Symfony\Component\HttpFoundation\File\File\getMimeType().
Symfony\Component\HttpFoundation\File\File::move | ( | $directory, | |
$name = null |
|||
) |
Moves the file to a new location.
string | $directory | The destination folder |
string | $name | The new file name |
FileException | if the target file could not be created |
Reimplemented in Symfony\Component\HttpFoundation\File\UploadedFile, and Symfony\Component\HttpFoundation\File\UploadedFile.
Definition at line 86 of file vendor/symfony/http-foundation/File/File.php.
References Symfony\Component\HttpFoundation\File\File\getTargetFile().
Symfony\Component\HttpFoundation\File\File::move | ( | $directory, | |
$name = null |
|||
) |
Moves the file to a new location.
string | $directory | The destination folder |
string | $name | The new file name |
FileException | if the target file could not be created |
Reimplemented in Symfony\Component\HttpFoundation\File\UploadedFile, and Symfony\Component\HttpFoundation\File\UploadedFile.
Definition at line 92 of file lib/vendor/symfony/http-foundation/File/File.php.
References Symfony\Component\HttpFoundation\File\File\getTargetFile().