API17:JRequest::getBool
From Joomla! Documentation
JRequest::getBool
Description
Fetches and returns a given filtered variable.
public static function getBool (
$name
$default=false
$hash= 'default'
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $name | |||
| $default | false | ||
| $hash | 'default' |
- Returns
- Defined on line 213 of libraries/joomla/environment/request.php
- Referenced by
See also
JRequest::getBool source code on BitBucket
Class JRequest
Subpackage Environment- Other versions of JRequest::getBool
User contributed notes
Example
$ourresult = JRequest::getBool( 'inputcheckbox', false, 'post' );
Code Examples