Galette API documentation
Gestionnaire d’Adhérents en Ligne Extrêmement Tarabiscoté mais Tellement Efficace
1.0.0
Galette\IO\File Class Reference
Inheritance diagram for Galette\IO\File:
Collaboration diagram for Galette\IO\File:

Public Member Functions

 __construct (string $dest, array $extensions=null, array $mimes=null, int $maxlenght=null)
 

Additional Inherited Members

- Public Attributes inherited from Galette\IO\FileInterface
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
 

Detailed Description

Files

Author
Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be

Constructor & Destructor Documentation

◆ __construct()

Galette\IO\File::__construct ( string  $dest,
array  $extensions = null,
array  $mimes = null,
int  $maxlenght = null 
)

Default constructor

Parameters
string$destFile 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: