Constructor.
JInput
__construct
([array $source = null], [array $options = array()])
-
array
$source: Source data (Optional, default is $_REQUEST)
-
array
$options: Array of configuration parameters (Optional)
Redefined in descendants as:
Get the number of variables.
integer
count
()
Implementation of:
- Countable::count
Define a value. The value will only be set if there's no value for the name or if it is null.
void
def
(string $name, mixed $value)
-
string
$name: Name of the value to define.
-
mixed
$value: Value to assign to the input.
Gets a value from the input data.
mixed
get
(string $name, [mixed $default = null], [string $filter = 'cmd'])
-
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.
Redefined in descendants as:
Gets an array of values from the request.
mixed
getArray
([array $vars = array()], [mixed $datasource = null])
-
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
Gets the request method.
string
getMethod
()
Method to load all of the global inputs.
void
loadAllInputs
()
Method to serialize the input.
string
serialize
()
Implementation of:
- Serializable::serialize
Redefined in descendants as:
Sets a value
void
set
(string $name, mixed $value)
-
string
$name: Name of the value to set.
-
mixed
$value: Value to assign to the input.
Redefined in descendants as:
Method to unserialize the input.
JInput
unserialize
(
string $input)
-
string
$input: The serialized input.
Implementation of:
- Serializable::unserialize
Redefined in descendants as:
Magic method to get filtered input data.
mixed
__call
(string $name, array $arguments)
-
string
$name: Name of the filter type prefixed with 'get'.
-
array
$arguments: [0] The name of the variable [1] The default value.
Redefined in descendants as:
Magic method to get an input object
-
mixed
$name: Name of the input object to retrieve.