$parameters
$parameters : array
Parameter storage.
FileBag is a container for uploaded files.
get(string $path, mixed $default = null, boolean $deep = false) : mixed
Returns a parameter by name.
| string | $path | The key |
| mixed | $default | The default value if the parameter key does not exist |
| boolean | $deep | If true, a path like foo[bar] will find deeper items |
getAlpha(string $key, mixed $default = '', boolean $deep = false) : string
Returns the alphabetic characters of the parameter value.
| string | $key | The parameter key |
| mixed | $default | The default value if the parameter key does not exist |
| boolean | $deep | If true, a path like foo[bar] will find deeper items |
The filtered value
getAlnum(string $key, mixed $default = '', boolean $deep = false) : string
Returns the alphabetic characters and digits of the parameter value.
| string | $key | The parameter key |
| mixed | $default | The default value if the parameter key does not exist |
| boolean | $deep | If true, a path like foo[bar] will find deeper items |
The filtered value
getDigits(string $key, mixed $default = '', boolean $deep = false) : string
Returns the digits of the parameter value.
| string | $key | The parameter key |
| mixed | $default | The default value if the parameter key does not exist |
| boolean | $deep | If true, a path like foo[bar] will find deeper items |
The filtered value
getInt(string $key, mixed $default, boolean $deep = false) : integer
Returns the parameter value converted to integer.
| string | $key | The parameter key |
| mixed | $default | The default value if the parameter key does not exist |
| boolean | $deep | If true, a path like foo[bar] will find deeper items |
The filtered value
getBoolean(string $key, mixed $default = false, boolean $deep = false) : boolean
Returns the parameter value converted to boolean.
| string | $key | The parameter key |
| mixed | $default | The default value if the parameter key does not exist |
| boolean | $deep | If true, a path like foo[bar] will find deeper items |
The filtered value
filter(string $key, mixed $default = null, boolean $deep = false, integer $filter = FILTER_DEFAULT, mixed $options = array()) : mixed
Filter key.
| string | $key | Key. |
| mixed | $default | Default = null. |
| boolean | $deep | Default = false. |
| integer | $filter | FILTER_* constant. |
| mixed | $options | Filter options. |
convertFileInformation(array|\Symfony\Component\HttpFoundation\File\UploadedFile $file) : array
Converts uploaded files to UploadedFile instances.
| array|\Symfony\Component\HttpFoundation\File\UploadedFile | $file | A (multi-dimensional) array of uploaded file information |
A (multi-dimensional) array of UploadedFile instances
fixPhpFilesArray(array $data) : array
Fixes a malformed PHP $_FILES array.
PHP has a bug that the format of the $_FILES array differs, depending on whether the uploaded file fields had normal field names or array-like field names ("normal" vs. "parent[child]").
This method fixes the array to look like the "normal" $_FILES array.
It's safe to pass an already converted array, in which case this method just returns the original array unmodified.
| array | $data |