|
| __construct ($source=null, array $options=array()) |
|
| get ($name, $default=null, $filter='cmd', $mask=0) |
|
| getData () |
|
| __call ($name, $arguments) |
|
| __construct ($source=null, array $options=array()) |
|
| __get ($name) |
|
| count () |
|
| get ($name, $default=null, $filter='cmd') |
|
| getArray (array $vars=array(), $datasource=null) |
|
| set ($name, $value) |
|
| def ($name, $value) |
|
| __call ($name, $arguments) |
|
| getMethod () |
|
| serialize () |
|
| unserialize ($input) |
|
◆ __construct()
__construct |
( |
|
$source = null , |
|
|
array |
$options = array() |
|
) |
| |
Public constructor. Overridden to allow specifying the global input array to use as a string and instantiate from an objetc holding variables.
- Paramètres
-
array | string | object | null | $source | Source data; set null to use $_REQUEST |
array | $options | Filter options |
Références $hash, JInput\$options, elseif, JRequest\get(), et null.
◆ __call()
__call |
( |
|
$name, |
|
|
|
$arguments |
|
) |
| |
Magic method to get filtered input data.
- Paramètres
-
mixed | $name | Name of the value to get. |
string | $arguments | Default value to return if variable does not exist. |
- Renvoie
- boolean The filtered boolean input value.
Références $default, JInput\$filter, $name, et null.
◆ __callStatic()
static __callStatic |
( |
|
$name, |
|
|
|
$arguments |
|
) |
| |
|
static |
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!
- Paramètres
-
string | $name | Name of the method we're calling |
array | $arguments | The arguments passed to the method |
- Renvoie
- mixed
Références $default, $input, $key, $name, $type, et FOFPlatform\getInstance().
◆ _cleanVar()
_cleanVar |
( |
|
$var, |
|
|
|
$mask = 0 , |
|
|
|
$type = null |
|
) |
| |
|
protected |
Custom filter implementation. Works better with arrays and allows the use of a filter mask.
- Paramètres
-
mixed | $var | The variable (value) to clean |
integer | $mask | The clean mask |
string | $type | The variable type |
- Renvoie
- mixed
Références $type, elseif, et null.
Référencé par get().
◆ get()
get |
( |
|
$name, |
|
|
|
$default = null , |
|
|
|
$filter = 'cmd' , |
|
|
|
$mask = 0 |
|
) |
| |
Gets a value from the input data. Overridden to allow specifying a filter mask.
- 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. |
int | $mask | The filter mask |
- Renvoie
- mixed The filtered input value.
Références $default, JInput\$filter, $name, et _cleanVar().
◆ getData()
Returns a copy of the raw data stored in the class
- Renvoie
- array
Références JInput\$data.
◆ setVar()
static setVar |
( |
|
$name, |
|
|
|
$value = null , |
|
|
& |
$input = array() , |
|
|
|
$overwrite = true |
|
) |
| |
|
static |
La documentation de cette classe a été générée à partir du fichier suivant :