◆ __construct()
| __construct |
( |
|
$source = null, |
|
|
array |
$options = array() |
|
) |
| |
Constructor.
- Paramètres
-
| array | $source | Source data (Optional, default is $_REQUEST) |
| array | $options | Array of configuration parameters (Optional) |
- Depuis
- 11.1
Références $options.
◆ __call()
| __call |
( |
|
$name, |
|
|
|
$arguments |
|
) |
| |
Magic method to get filtered input data.
- Paramètres
-
| string | $name | Name of the filter type prefixed with 'get'. |
| array | $arguments | [0] The name of the variable [1] The default value. |
- Renvoie
- mixed The filtered input value.
- Depuis
- 11.1
Références $default, $filter, $name, et null.
◆ __get()
Magic method to get an input object
- Paramètres
-
| mixed | $name | Name of the input object to retrieve. |
- Renvoie
- JInput The request input object
- Depuis
- 11.1
Références $className, $GLOBALS, $name, et null.
◆ count()
Get the number of variables.
- Renvoie
- integer The number of variables in the input.
- Depuis
- 12.2
- Voir également
- Countable::count()
◆ def()
Define a value. The value will only be set if there's no value for the name or if it is null.
- Paramètres
-
| string | $name | Name of the value to define. |
| mixed | $value | Value to assign to the input. |
- Renvoie
- void
- Depuis
- 12.1
Références $name, et $value.
◆ get()
| get |
( |
|
$name, |
|
|
|
$default = null, |
|
|
|
$filter = 'cmd' |
|
) |
| |
Gets a value from the input data.
- Paramètres
-
| string | $name | Name of the value to get. |
| mixed | $default | Default value to return if variable does not exist. |
| string | $filter | Filter to apply to the value. |
- Renvoie
- mixed The filtered input value.
- Depuis
- 11.1
Références $default, $filter, et $name.
◆ getArray()
| getArray |
( |
array |
$vars = array(), |
|
|
|
$datasource = null |
|
) |
| |
Gets an array of values from the request.
- Paramètres
-
| 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 default case in JFilterInput::clean. |
| mixed | $datasource | Array to retrieve data from, or null |
- Renvoie
- mixed The filtered input data.
- Depuis
- 11.1
Références $data, $results, elseif, et null.
◆ getMethod()
Gets the request method.
- Renvoie
- string The request method.
- Depuis
- 11.1
◆ loadAllInputs()
Method to load all of the global inputs.
- Renvoie
- void
- Depuis
- 12.1
Références $data, et $GLOBALS.
◆ serialize()
Method to serialize the input.
- Renvoie
- string The serialized input.
- Depuis
- 12.1
◆ set()
Sets a value
- Paramètres
-
| string | $name | Name of the value to set. |
| mixed | $value | Value to assign to the input. |
- Renvoie
- void
- Depuis
- 11.1
Références $name, et $value.
◆ unserialize()
Method to unserialize the input.
- Paramètres
-
| string | $input | The serialized input. |
- Renvoie
- JInput The input object.
- Depuis
- 12.1
Références $input.
◆ $data
◆ $filter
◆ $inputs
◆ $options
La documentation de cette classe a été générée à partir du fichier suivant :