Since: 1.7.0

class Files extends Input

deprecated 4.3 will be removed in 6.0. Use Joomla\Input\Files instead

Joomla! Input Files Class

Properties

protected Input[] deprecated Since: 1.7.0
$inputs

Input objects

from  Input
Input read-only $get from  Input
Input read-only $post from  Input
Input read-only $request from  Input
Input read-only $server from  Input
Input read-only $env from  Input
Files read-only $files from  Input
$cookie from  Input
Json read-only $json from  Input
protected array deprecated Since: 1.7.0
$decodedData

The pivoted data from a $_FILES or compatible array.

Methods

__construct(array $source = null, array $options = []) deprecated

The class constructor.

Input
__get(mixed $name) deprecated

Magic method to get an input object

from  Input
mixed
getArray(array $vars = [], mixed $datasource = null, string $defaultFilter = 'unknown') deprecated

Gets an array of values from the request.

from  Input
mixed
getArrayRecursive(array $vars = [], mixed $datasource = null, string $defaultFilter = 'unknown', bool $recursion = false) deprecated

Gets an array of values from the request.

from  Input
void
unserialize(string $input) deprecated

Method to unserialize the input.

from  Input
mixed
get(string $name, mixed $default = null, string $filter = 'cmd') deprecated

Gets a value from the input data.

array
decodeData(array $data) deprecated

Method to decode a data array.

void
set(string $name, mixed $value) deprecated

Sets a value.

Details

__construct(array $source = null, array $options = []) deprecated

Since: 3.0.0

deprecated 4.3 will be removed in 6.0. Use Joomla\Input\Files instead

The class constructor.

Parameters

array $source

Source data (Optional, default is $_REQUEST)

array $options

Array of configuration parameters (Optional)

Input __get(mixed $name) deprecated

Since: 1.7.0

deprecated 4.3 will be removed in 6.0. Use Joomla\Input\Input instead

Magic method to get an input object

Parameters

mixed $name

Name of the input object to retrieve.

Return Value

Input

The request input object

mixed getArray(array $vars = [], mixed $datasource = null, string $defaultFilter = 'unknown') deprecated

Since: 1.7.0

deprecated 4.3 will be removed in 6.0. Use Joomla\Input\Input instead

Gets an array of values from the request.

Parameters

array $vars

Associative array of keys and filter types to apply. If empty and datasource is null, all the input data will be returned but filtered using the filter given by the parameter defaultFilter in InputFilter::clean.

mixed $datasource

Array to retrieve data from, or null.

string $defaultFilter

Default filter used in InputFilter::clean if vars is empty and datasource is null. If 'unknown', the default case is used in InputFilter::clean.

Return Value

mixed

The filtered input data.

protected mixed getArrayRecursive(array $vars = [], mixed $datasource = null, string $defaultFilter = 'unknown', bool $recursion = false) deprecated

Since: 3.4.2

deprecated 4.3 will be removed in 6.0. Use Joomla\Input\Input instead

Gets an array of values from the request.

Parameters

array $vars

Associative array of keys and filter types to apply. If empty and datasource is null, all the input data will be returned but filtered using the filter given by the parameter defaultFilter in InputFilter::clean.

mixed $datasource

Array to retrieve data from, or null.

string $defaultFilter

Default filter used in InputFilter::clean if vars is empty and datasource is null. If 'unknown', the default case is used in InputFilter::clean.

bool $recursion

Flag to indicate a recursive function call.

Return Value

mixed

The filtered input data.

void unserialize(string $input) deprecated

Since: 3.0.0

deprecated 4.3 will be removed in 6.0. Use Joomla\Input\Input instead

Method to unserialize the input.

Parameters

string $input

The serialized input.

Return Value

void

mixed get(string $name, mixed $default = null, string $filter = 'cmd') deprecated

Since: 1.7.0

deprecated 4.3 will be removed in 6.0. Use Joomla\Input\Files instead

Gets a value from the input data.

Parameters

string $name

The name of the input property (usually the name of the files INPUT tag) to get.

mixed $default

The default value to return if the named property does not exist.

string $filter

The filter to apply to the value.

Return Value

mixed

The filtered input value.

See also

InputFilter::clean

protected array decodeData(array $data) deprecated

Since: 1.7.0

deprecated 4.3 will be removed in 6.0. Use Joomla\Input\Files instead

Method to decode a data array.

Parameters

array $data

The data array to decode.

Return Value

array

void set(string $name, mixed $value) deprecated

Since: 1.7.0

deprecated 4.3 will be removed in 6.0. Use Joomla\Input\Files instead

Sets a value.

Parameters

string $name

The name of the input property to set.

mixed $value

The value to assign to the input property.

Return Value

void