|
| __construct (string $dest, array $extensions=null, array $mimes=null, int $maxlenght=null) |
|
|
const | INVALID_FILENAME = -1 |
|
const | INVALID_EXTENSION = -2 |
|
const | FILE_TOO_BIG = -3 |
|
const | IMAGE_TOO_SMALL = -4 |
|
const | MIME_NOT_ALLOWED = -5 |
|
const | NEW_FILE_EXISTS = -6 |
|
const | INVALID_FILE = -7 |
|
const | CANT_WRITE = -8 |
|
const | MAX_FILE_SIZE = 2048 |
|
const | MIN_CROP_SIZE = 267 |
|
◆ __construct()
Galette\IO\File::__construct |
( |
string |
$dest, |
|
|
array |
$extensions = null , |
|
|
array |
$mimes = null , |
|
|
int |
$maxlenght = null |
|
) |
| |
Default constructor
- Parameters
-
string | $dest | File destination directory |
| ?array<int,string> | $extensions Array of permitted extensions |
| ?array<string,string> | $mimes Array of permitted mime types |
| ?int | $maxlenght Maximum length for each file |
The documentation for this class was generated from the following file:
- /home/docs/checkouts/readthedocs.org/user_builds/galette-apidoc/checkouts/develop/galette/lib/Galette/IO/File.php