Sets an input variable. WARNING: IT SHOULD NO LONGER BE USED!
static string
setVar
(string $name, [mixed $value = null], [array &$input = array()], [boolean $overwrite = true])
-
string
$name: The name of the variable to set
-
mixed
$value: The value to set it to
-
array
&$input: The input array or FOFInput object
-
boolean
$overwrite: Should I overwrite existing values (default: true)
Old static methods are now deprecated. This magic method makes sure there is a continuity in our approach. The downside is that it's only compatible with PHP 5.3.0. Sorry!
static mixed
__callStatic
(string $name, array $arguments)
-
string
$name: Name of the method we're calling
-
array
$arguments: The arguments passed to the method
Public constructor. Overriden to allow specifying the global input array to use as a string and instantiate from an objetc holding variables.
FOFInput
__construct
([array|string|object|null $source = null], [array $options = array()])
-
array|string|object|null
$source: Source data; set null to use $_REQUEST
-
array
$options: Filter options
Redefinition of:
- JInput::__construct()
- Constructor.
Gets a value from the input data. Overriden to allow specifying a filter mask.
mixed
get
(string $name, [mixed $default = null], [string $filter = 'cmd'], [int $mask = 0])
-
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.
-
int
$mask: The filter mask
Redefinition of:
- JInput::get()
- Gets a value from the input data.
Returns a copy of the raw data stored in the class
array
getData
()
Custom filter implementation. Works better with arrays and allows the use of a filter mask.
mixed
_cleanVar
(mixed $var, [integer $mask = 0], [string $type = null])
-
mixed
$var: The variable (value) to clean
-
integer
$mask: The clean mask
-
string
$type: The variable type
Magic method to get filtered input data.
boolean
__call
(mixed $name, string $arguments)
-
mixed
$name: Name of the value to get.
-
string
$arguments: Default value to return if variable does not exist.
Redefinition of:
- JInput::__call()
- Magic method to get filtered input data.
Inherited Methods
Inherited From JInput
JInput::__construct()
JInput::count()
JInput::def()
JInput::get()
JInput::getArray()
JInput::getMethod()
JInput::loadAllInputs()
JInput::serialize()
JInput::set()
JInput::unserialize()
JInput::__call()
JInput::__get()