JRequest::getBool
Fetches and returns a given filtered variable. The bool filter will only return true/false bool values. This is currently only a proxy function for getVar().
See getVar() for more in-depth documentation on the parameters.
Signature
public function getBool(string
$name,
[string
$default = false,
[string
$hash = 'default']] )
Parameters
-
$name
- Variable name.
-
$default
- Default value if the variable does not exist.
-
$hash
- Where the var should come from (POST, GET, FILES, COOKIE, METHOD).
Returns
- boolean
- Requested variable.