Files
class Files extends Parameters
Files.
Properties
protected array | $parameters | Parameters. | from Parameters |
Methods
Constructor.
Adds a parameter.
Returns request data where keys not in the whitelist have been removed.
Returns request data where keys in the blacklist have been removed.
Creates a UploadedFile object.
Normalizes a multi file upload array to a more manageable format.
Converts the $_FILES array to an array of UploadedFile objects.
Details
at line 24
__construct(array $parameters = [])
Constructor.
in Parameters at line 49
int
count()
Returns the numner of items in the collection.
in Parameters at line 59
ArrayIterator
getIterator()
Retruns an array iterator object.
at line 96
add(string $name, mixed $value)
Adds a parameter.
in Parameters at line 81
bool
has(string $name)
Returns TRUE if the parameter exists and FALSE if not.
in Parameters at line 93
mixed
get(string $name, mixed $default = null)
Gets a parameter value.
in Parameters at line 103
remove(string $name)
Removes a parameter.
in Parameters at line 113
array
all()
Returns all the parameters.
in Parameters at line 125
array
whitelisted(array $keys, array $defaults = [])
Returns request data where keys not in the whitelist have been removed.
in Parameters at line 137
array
blacklisted(array $keys, array $defaults = [])
Returns request data where keys in the blacklist have been removed.
at line 35
protected UploadedFile
createUploadedFile(array $file)
Creates a UploadedFile object.
at line 46
protected array
normalizeMultiUpload(array $files)
Normalizes a multi file upload array to a more manageable format.
at line 71
protected array
convertToUploadedFileObjects(array $files)
Converts the $_FILES array to an array of UploadedFile objects.